{"id":26548517,"url":"https://github.com/hugoxox3/bitkeygen","last_synced_at":"2026-04-17T15:01:58.823Z","repository":{"id":282739669,"uuid":"949512772","full_name":"HugoXOX3/BitKeyGen","owner":"HugoXOX3","description":"BitKeyGen: A Python tool to generate Bitcoin private keys, WIFs, and addresses. Perfect for developers and crypto enthusiasts! Save keys to wallet.json securely. 🚀🔑 #Bitcoin #Crypto","archived":false,"fork":false,"pushed_at":"2025-03-16T17:15:14.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T17:26:41.152Z","etag":null,"topics":["bitcoin","bitcoin-hacks","bitcoin-key-generation","bitcoin-wallet","cryptocurrency","cryptography","cryptography-and-security"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HugoXOX3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-16T16:19:47.000Z","updated_at":"2025-03-16T17:15:17.000Z","dependencies_parsed_at":"2025-03-16T23:16:36.402Z","dependency_job_id":null,"html_url":"https://github.com/HugoXOX3/BitKeyGen","commit_stats":null,"previous_names":["hugoxox3/bitkeygen"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoXOX3%2FBitKeyGen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoXOX3%2FBitKeyGen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoXOX3%2FBitKeyGen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoXOX3%2FBitKeyGen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HugoXOX3","download_url":"https://codeload.github.com/HugoXOX3/BitKeyGen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244914032,"owners_count":20530944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitcoin","bitcoin-hacks","bitcoin-key-generation","bitcoin-wallet","cryptocurrency","cryptography","cryptography-and-security"],"created_at":"2025-03-22T06:19:14.564Z","updated_at":"2026-04-17T15:01:58.677Z","avatar_url":"https://github.com/HugoXOX3.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BitKeyGen\n\n**BitKeyGen** is a Python script that generates Bitcoin private keys, Wallet Import Format (WIF) keys, and corresponding Bitcoin addresses. It is designed for educational purposes, testing, and wallet creation. The program ensures that all keys are generated securely and saves them to a `wallet.json` file for easy management.\n\n---\n\n## Features\n\n- **Random Key Generation**: Generates cryptographically secure Bitcoin private keys.\n- **WIF Conversion**: Converts private keys into Wallet Import Format (WIF) for easy import into wallets.\n- **Address Derivation**: Derives Bitcoin addresses from private keys using elliptic curve cryptography.\n- **File Storage**: Saves generated keys to a `wallet.json` file for easy access and backup.\n- **Graceful Interrupt Handling**: Saves the wallet even if the program is interrupted with `Ctrl+C`.\n- **Address Activity Checker**: Includes a `check_wallet_address` program to verify which addresses have transactions.\n\n---\n\n## Installation\n\n1. **Clone the Repository**:\n   ```bash\n   git clone https://github.com/HugoXOX3/BitKeyGen.git\n   cd BitKeyGen\n   ```\n\n2. **Install Dependencies**:\n   The script requires the `base58` library for encoding. Install it using pip:\n   ```bash\n   pip install base58\n   ```\n\n3. **Run the Script**:\n   ```bash\n   python main.py\n   ```\n\n---\n\n## Usage\n\n### 1. **Generate Keys**\n1. **Set the Number of Keys**:\n   When prompted, enter the number of keys you want to generate.\n\n2. **Check the Output**:\n   The generated keys will be saved in the `wallet.json` file in the same directory. Each key will include:\n   - `private_key`: The private key in hexadecimal format.\n   - `wif`: The Wallet Import Format (WIF) key.\n   - `address`: The Bitcoin address.\n\n3. **Interrupt Handling**:\n   If you press `Ctrl+C`, the program will save the current state of the wallet to `wallet.json` before exiting.\n\n### 2. **Check Address Activity**\nThe `check_wallet_address` program checks which addresses in `wallet.json` have transactions using the Bitcoin Explorer API.\n\n1. **Run the Checker**:\n   ```bash\n   python check_wallet_address.py\n   ```\n\n2. **Output**:\n   - Addresses with transactions are saved to `found.txt`.\n   - The program prints the status of each address (active or inactive).\n\n---\n\n## Example\n\n### Input (Key Generation):\n```\nEnter the number of keys to generate: 5\n```\n\n### Output (Key Generation):\n```\nGenerating 5 keys...\nGenerated key 1/5: 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa\nGenerated key 2/5: 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy\nGenerated key 3/5: bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq\nGenerated key 4/5: 1PMycacnJaSqwwJqjawXBErnLsZ7RkXUAs\nGenerated key 5/5: 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2\nWallet saved to wallet.json.\n```\n\n### `wallet.json`:\n```json\n[\n    {\n        \"private_key\": \"0x1e2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7f809\",\n        \"wif\": \"5HueCGU8rMjxEXxiPuD5BDu1E8jMZ1G7fC2o5Y6f4h6Z\",\n        \"address\": \"1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa\"\n    },\n    {\n        \"private_key\": \"0x2f3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7f8091b\",\n        \"wif\": \"5Kb8kLf9zgWQnogidDA76MzPL6TsZZY36hWXMssSzNydYXYB9KF\",\n        \"address\": \"1PMycacnJaSqwwJqjawXBErnLsZ7RkXUAs\"\n    }\n]\n```\n\n### Input (Address Checker):\n```\npython check_wallet_address.py\n```\n\n### Output (Address Checker):\n```\nLoaded 2 addresses from wallet.json.\nChecking address: 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa\nAddress 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa has transactions. Saving to found.txt.\nChecking address: 1PMycacnJaSqwwJqjawXBErnLsZ7RkXUAs\nAddress 1PMycacnJaSqwwJqjawXBErnLsZ7RkXUAs has no transactions.\n```\n\n### `found.txt`:\n```\n1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa\n```\n\n---\n\n## Security Notes\n\n- **Private Keys**: Never share your private keys. Anyone with access to a private key can control the associated Bitcoin.\n- **File Storage**: Ensure the `wallet.json` file is stored securely. Consider encrypting it or storing it in a secure location.\n- **Use at Your Own Risk**: This script is for educational purposes only. Use it responsibly.\n\n---\n\n## Donations\n\nIf you find this project useful, consider supporting it with a Bitcoin donation:\n\n**Bitcoin Address**: `bc1qt7a6vl28czf00vmuse9j7xwpyr7jjt83m2hljh`\n\n[![Donate Bitcoin](https://img.shields.io/badge/Donate-Bitcoin-orange?logo=bitcoin)](bitcoin:bc1qt7a6vl28czf00vmuse9j7xwpyr7jjt83m2hljh)\n\n---\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugoxox3%2Fbitkeygen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugoxox3%2Fbitkeygen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugoxox3%2Fbitkeygen/lists"}