diff --git a/README.md b/README.md new file mode 100644 index 0000000..b611810 --- /dev/null +++ b/README.md @@ -0,0 +1,49 @@ +# 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) + +## Requirements + +```bash +pip install -r requirements.txt +``` + +## 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" + ] +} +```