Git Product home page Git Product logo

ansav12 / cpp-auth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brian8544/cpp-auth

0.0 0.0 0.0 13 KB

cpp-auth is a simple key/license check system written in C++ and PHP. It allows you to verify license keys and manage user authentication for your application. This repository consists of both server-side and client-side code.

Home Page: https://brianoost.com/

License: Apache License 2.0

C++ 59.53% C 5.46% PHP 15.43% CMake 19.58%

cpp-auth's Introduction

cpp-auth - Simple Key/License Check System

Overview

cpp-auth is a simple key/license check system written in C++ and PHP. It allows you to verify license keys and manage user authentication for your application. This repository consists of both server-side and client-side code.

Features

  • Server-Side (PHP):

    • Provides a PHP script (verify.php) for verifying license keys.
    • Handles HTTP POST requests to validate license keys against a database.
    • Responds with JSON messages indicating success or failure.
  • Client-Side (C++):

    • Contains C++ code for license management and user authentication.
    • Generates license files (license.lic) with relevant information.
    • Prompts users to verify ownership and enter license keys.
    • Uses cURL to perform HTTP POST requests to the server-side script.
    • Handles server responses, allowing access to the application upon successful license verification.

Why Reverse Engineering Protection Is Important

Adding reverse engineering protection to your application is crucial to safeguard your intellectual property and prevent unauthorized access or distribution. Consider using tools like VMProtect or Themida to:

  • Protect Against Decompilation: Prevent reverse engineers from easily decompiling and analyzing your C++ code.

  • Obfuscate Your Code: Make it challenging for attackers to understand and modify your code, reducing the risk of cracks and hacks.

  • Secure Sensitive Data: Protect sensitive information, such as license keys or encryption keys, from being extracted or tampered with.

  • Deter Unauthorized Distribution: Make it difficult for unauthorized users to distribute cracked versions of your software.

How to Use

Server-Side (PHP)

  1. Place the verify.php script on your server.

  2. Configure the script by including a config.php file, which likely contains your database connection settings.

  3. Set up your database to store license keys and other relevant information.

Client-Side (C++)

  1. Include the necessary headers and source files in your C++ project.

  2. Use the provided functions from Authentication.cpp for license management and user authentication.

  3. Modify the code to integrate with your application, replacing the placeholder functions with your custom functionality.

  4. Implement reverse engineering protection mechanisms using tools like VMProtect or Themida to enhance security.

  5. Build and run your C++ application.

License

This code is provided under an open-source license. Please review the LICENSE file for details.

Disclaimer

This repository serves as a basic example of a key/license check system and is intended for educational purposes. It may require customization to meet your specific requirements and security considerations. Incorporating reverse engineering protection is strongly recommended to enhance the security of your application.

Contributions

Contributions are welcome! Feel free to submit issues, feature requests, or pull requests to improve this project.


For more information, visit https://brianoost.com/.

cpp-auth's People

Contributors

brian8544 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.