License-API
Licensing-API is an API to create, manage and check keys for your projects.
Preview
Features
- Web Interface
- Create/Delete/Activate/Deactivate Keys over WI or API
- Login
- Signup
- Password Fernet Encryption
- Automatic Key Counter
What’s not covered?
- Anti-Bruteforce-Defence
- Sql-Injection (not-tested)
- Api-Limit
Explanation
I’m just a junior backend dev, and wasn’t able to cover these protections,
because of missing Knowledge and this Project was made in 5 days, and I want to go on.
Setup
- Open a terminal
- Clone Repo
cd (your folder)
git clone https://github.com/screamz2k/License-API
- Run setup
python3 setup.py
- Run app
python3 app.py
Docs
* Login required.
*Create Key
/api/create-key
[GET] ?expiry=30
Set Days the key is valid after activation.
/api/create-key
[POST] {
"expiry": 30,
"username": your-username,
"password" your-password
}
*Create multiple Keys
/api/create-keys
[GET] ?expiry=30
Set Days the keys are valid after activation.
?amount=30
Set Amount of keys to generate.
/api/create-key
[POST] {
"amount": 10,
"expiry": 30,
"username": your-username,
"password" your-password
}
*Delete Key
/api/delete-key
[GET] ?key=your-key
Set the key you want to delete.
/api/delete-key
[POST] {
"key": your-key,
"username": your-username,
"password" your-password
}
Activate Key
/api/activate-key
[GET] ?key=your-key
Set the key you want to activate.
?mac=clients-mac-address
Set the mac-address of the client to prevent cracking.
/api/activate-key
[POST] {
"key": your-key,
"mac": clients-mac-address
}
*Deactivate Key
/api/deactivate-key
[GET] ?key=your-key
Set the key you want to deactivate.
/api/deactivate-key
[POST] {
"key": your-key,
"username": your-username,
"password": your-password
}
Check Key Data
/api/check-key
[GET] ?key=your-key
Set the key you to check.
Thanks
- Dreamy#1204 for reporting bugs