API Key Generator
A simple Python script to generate secure API keys. The script allows you to generate multiple API keys at once and save them to either a text or JSON file.
Features
- Generate cryptographically secure API keys
- Save keys to TXT or JSON format
- Interactive command-line interface
- Configurable key length (default: 32 characters)
Usage
- Clone this repository or download the
main.pyfile - Run the script:
python main.py - Follow the prompts:
- Enter the number of API keys you want to generate
- Choose whether to save the keys to a file
- Select the file format (txt/json)
- Choose whether to generate more keys
Output Formats
Text File (api_keys.txt)
KEY1
KEY2
KEY3
JSON File (api_keys.json)
{
"api_keys": [
"KEY1",
"KEY2",
"KEY3"
]
}
Description
Languages
Python
100%