This script generates cryptographically secure random AES (Advanced Encryption Standard) keys of sizes 128-bit, 192-bit, and 256-bit. It is designed for ethical penetration testing, security analysis, and cryptographic purposes.
-
Interactive command-line interface (CLI) and Graphical User Interface (GUI).
-
Generates cryptographically secure random AES keys.
-
Supports AES key lengths of 128-bit, 192-bit, and 256-bit.
-
Displays the number of rounds used in AES encryption for the selected key size:
- 128-bit: 10 rounds
- 192-bit: 12 rounds
- 256-bit: 14 rounds
- Utilizes Python's built-in
secretsmodule to generate secure random keys. - ANSI escape sequences provide colored terminal output for enhanced readability.
- Python 3.x
Run the script directly from the terminal or download the repository.
Upon execution, the script provides an interactive menu:
Select the key size (Enter to exit):
1. 128-bit
2. 192-bit
3. 256-bit
Choice:
- Select the desired AES key size by entering
1,2, or3. - After selecting the key size, specify the number of keys to generate (between 1 and 1000).
- Generated keys are displayed with an index for easy identification.
- Press
Enterwithout typing any choice to exit the program from the main menu. - After generating keys, press
Enterto return to the main menu, or pressEnteragain from the main menu to close the script.
AES-128 will use 10 rounds.
Select how many keys to generate (1-1000): 3
1: 5A1F2B8D3C4E6F708192A0BCD123EF45
2: 1BCD2E3F456789AB01CDEF23456789AB
3: ABCD1234567890EFEDCBA09876543210
Press Enter to return to main menu…
Joshua M Clatney (Clats97)
Ethical Pentesting Enthusiast
Copyright © 2024-2025 Joshua M Clatney (Clats97) All Rights Reserved
DISCLAIMER: This project comes with no warranty, express or implied. The author is not responsible for abuse, misuse, or vulnerabilities. Please use responsibly and ethically in accordance with relevant laws, regulations, legislation and best practices.