44 lines
861 B
Markdown
44 lines
861 B
Markdown
# 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
|
|
|
|
1. Clone this repository or download the `main.py` file
|
|
2. Run the script:
|
|
```bash
|
|
python main.py
|
|
```
|
|
3. 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)
|
|
```json
|
|
{
|
|
"api_keys": [
|
|
"KEY1",
|
|
"KEY2",
|
|
"KEY3"
|
|
]
|
|
}
|
|
```
|