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.
-
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.
- Provides a PHP script (
-
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.
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.
-
Place the
verify.php
script on your server. -
Configure the script by including a
config.php
file, which likely contains your database connection settings. -
Set up your database to store license keys and other relevant information.
-
Include the necessary headers and source files in your C++ project.
-
Use the provided functions from
Authentication.cpp
for license management and user authentication. -
Modify the code to integrate with your application, replacing the placeholder functions with your custom functionality.
-
Implement reverse engineering protection mechanisms using tools like VMProtect or Themida to enhance security.
-
Build and run your C++ application.
This code is provided under an open-source license. Please review the LICENSE
file for details.
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 are welcome! Feel free to submit issues, feature requests, or pull requests to improve this project.
For more information, visit https://brianoost.com/.