Skip to content
tago edited this page Apr 19, 2024 · 8 revisions

Activating Keys on Discord (AKoD) Flare Version provides functionality for securely storing and retrieving license information using AES encryption. This wiki page provides an overview of Flare and how to use it in your projects. It is mostly similar to the original AKoD, other than changes to support Ubuntu and Apache

Difference between AKoD and Flare

AKoD Flare is a slightly modified version of AKoD, changing the storage servers from GitHub & Netlify, to your own Ubuntu/Linux server! No need to store files on GitHub, or wait 20 seconds for Netlify to build the site every time, on your Ubuntu server Apache applies the changes instantly and with this wiki you can get set up in no time! The only downside is you must own a registered domain, in order to tunnel your server through Cloudflare for security. Get started by getting your own domain or if you already have a domain boot up your Ubuntu server and get started with installing WebDAV

Encrypter

The encrypter component is responsible for encrypting license data and managing repositories for storing encrypted data. It uses AES encryption to securely encrypt license files and stores them in a Git repository.

Functions:

  • encrypt_file_pass(file_path): Encrypts a file using AES encryption and a password read from a password.txt file.
  • process_new_folders(new_folders): Processes new folders in the registered accounts directory, encrypts files, and commits changes to the Git repository.
  • delete_removed_folders(existing_folders, registered_folders): Deletes folders that have been removed from the registered accounts directory.
  • monitor(registered_accounts, repo_path): Monitors changes in the registered accounts directory and updates the Git repository accordingly.

Decrypter

The decrypter component is responsible for decrypting license data and validating activation keys. It uses AES decryption to decrypt license data and validate activation keys against a public server.

Functions:

  • setActivationKey(string): Sets the activation key for validating license data.
  • privatekey(encrypted_key): Sets the private key for decrypting license data.
  • publicserverkey(link): Sets the public server key for accessing the license validation server.
  • isValid(login, password): Validates a user login and password against the license validation server.
  • service('type'): Types: Default, WebDAV
  • customWebDAVLocation('customlocation'): Specify a custom location for your WebDAV server if you've changed it from 'accs'

Discord Bot Integration

Flare includes a Discord bot that provides functionality for activating license keys using the /validate command in Discord. The bot integrates with the watcher script to manage license data and validate activation keys.

Commands

  • /validate [key] [username] [password]: Activates a license key and creates an account with the username and password.
  • /keyadd [key]: Adds a license key to the database.
  • /remove [key]: Removes a license key from the database.
  • /removecooldown [key]: Removes the cooldown for a license key, allowing it to be activated again immediately.

WebDAV Integration

The Discord bot uses an Apache WebDAV repository, that you set up, to store encrypted license data. When a new license key is activated, the bot encrypts the key and stores it in the WebDAV directory. The changes are instant, so no waiting for pushes or builds!

Clone this wiki locally