License-API

Licensing-API is an API to create, manage and check keys for your projects.

Preview

grafik

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

  1. Open a terminal
  2. Clone Repo
    • cd (your folder)
    • git clone https://github.com/screamz2k/License-API
  3. Run setup
    • python3 setup.py
  4. Run app
    • python3 app.py

Docs

* Login required.

*Create Key

[GET] /api/create-key

?expiry=30
Set Days the key is valid after activation.

[POST] /api/create-key

{
"expiry": 30,
"username": your-username,
"password" your-password
}

*Create multiple Keys

[GET] /api/create-keys

?expiry=30
Set Days the keys are valid after activation.
?amount=30
Set Amount of keys to generate.

[POST] /api/create-key

{
"amount": 10,
"expiry": 30,
"username": your-username,
"password" your-password
}

*Delete Key

[GET] /api/delete-key

?key=your-key
Set the key you want to delete.

[POST] /api/delete-key

{
"key": your-key,
"username": your-username,
"password" your-password
}

Activate Key

[GET] /api/activate-key

?key=your-key
Set the key you want to activate.
?mac=clients-mac-address
Set the mac-address of the client to prevent cracking.

[POST] /api/activate-key

{
"key": your-key,
"mac": clients-mac-address
}

*Deactivate Key

[GET] /api/deactivate-key

?key=your-key
Set the key you want to deactivate.

[POST] /api/deactivate-key

{
"key": your-key,
"username": your-username,
"password": your-password
}

Check Key Data

[GET] /api/check-key

?key=your-key
Set the key you to check.

Thanks

  • Dreamy#1204 for reporting bugs

GitHub

View Github