Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.
tago edited this page Apr 14, 2024 · 6 revisions

Activating Keys on Discord (AKoD) provides functionality for securely storing and retrieving license information using AES encryption. This wiki page provides an overview of AKoD and how to use it in your projects.

Overview

AKoD consists of two main components: the encrypter and the decrypter.

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:

  • clone(url, pat): Clones a Git repository using a provided URL and personal access token (PAT).
  • 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.
  • commit_changes(commit_message): Commits changes to the Git repository with a specified commit message.
  • 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.

Discord Bot Integration

The AKoD system includes a Discord bot that provides functionality for activating license keys using the /validate command in Discord. The bot integrates with GitHub and Netlify 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.

GitHub Integration

The Discord bot uses a GitHub repository to store encrypted license data. When a new license key is activated, the bot encrypts the key and stores it in the repository. It also commits changes to the repository when keys are removed or cooldowns are removed.

Netlify Integration

The Discord bot integrates with Netlify to validate activation keys. When a user attempts to activate a key, the bot sends a request to a Netlify server that hosts the license validation endpoint. The server responds with the validation result, which the bot uses to determine if the key is valid.

Clone this wiki locally