forked from tagoWorks/akod
-
Notifications
You must be signed in to change notification settings - Fork 1
Setting up API with Your Code
tago edited this page May 5, 2024
·
7 revisions
The AKoDAuth Flask API is a tool for secure user authentication and access control. With customizable database settings, it gives flexibility in deployment across various platforms. Through encryption and decryption functionalities, it securely manages activation keys, private keys, and public keys. The API includes node locking capabilities, restricting access to authorized devices. By cross-referencing hardware IDs, it ensures that user accounts are not used on different devices.
Use ValidateV2 to add HWID/Node locking or IP locking to your license keys
- Install the Flare Helper python package
pip install flare-helper
- Import the API from the helper
from flare import API
- Initialize the API
api = API( apilink="server api link", private_key="private key from identifiers.txt", public_key="public key from identifiers.txt" ) api.setprivate() api.setpublic()
- Validate a user
api.auth( activation_key=" ", login=" ", password=" " ) response = api.validate() if response.text == 'VALID': print("Hello, World!")
OPTIONAL In order to hide your private key and licensing website link, I recommend you obfuscate your code with a python obfuscator. Hyperion is very advanced. Additionally, if you create an executable from your python code it will be difficult to decompile.