From 95e908c62bd4cea6d3f8a6ae09086692895a1811 Mon Sep 17 00:00:00 2001 From: Wesley Neuhaus <37388141+HugeBob@users.noreply.github.com> Date: Thu, 16 Jan 2025 15:04:59 -0500 Subject: [PATCH] README --- README.md | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 README.md 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" + ] +} +```