Private key
—COBRA is a free, open-source Bitcoin cryptography playground for generating randomness and understanding how private keys become public addresses.
In principle, a valid secret number plus the Bitcoin derivation rules is enough to reconstruct its corresponding address. Human-created “random” numbers are not secure enough for real funds, however. COBRA demonstrates the mathematics; secure wallet software uses cryptographically strong entropy.
Create integers, hexadecimal strings, raw bytes and UUIDs from your browser's cryptographically secure random source.
Click “Generate random value”.
Generate a fresh 256-bit private key locally or supply a valid hexadecimal key and inspect every stage of legacy P2PKH derivation.
—————The private key/WIF is the controlling secret. COBRA does not upload or retain it. Anyone who obtains it can potentially spend funds controlled by the corresponding address.
COBRA follows the original project methodology: valid 256-bit scalar → secp256k1 public key → SHA-256 → RIPEMD-160 → Bitcoin mainnet version byte → double-SHA-256 checksum → Base58Check address.
The current browser engine reimplements that method in JavaScript. The original Python implementation and historical Colab notebook remain separate and preserved as the project's research provenance.
These visuals and references come from the original Bitcoin Address Generator repository. The web product exposes the underlying cryptographic method rather than hiding it behind a single button.
$ pip install bitcoin-address-generator
from bitcoin_address_generator import generate_wallet
private_key, public_key, address = generate_wallet()
print(f"Bitcoin Address: {address}")
# methodology
entropy → private key
private key × secp256k1 generator point → public key
SHA-256 → RIPEMD-160 → version byte
→ double-SHA-256 checksum → Base58Check → P2PKH addressView the full source on GitHub ↗The private key is a scalar. The corresponding public key is produced by elliptic-curve scalar multiplication on secp256k1 — the curve used by Bitcoin.
Runs locally in JavaScript using the browser cryptographic RNG and pinned cryptographic libraries. Private keys do not need to leave the device.
The repository's Python package and 2023 notebook demonstrate the same address-construction chain using Python, ECDSA, hashlib and Base58.
Open original notebook ↗Generating an address does not register an account with COBRA or Bitcoin. If bitcoin is later sent to it, the transaction/output becomes visible on the Bitcoin network. Control comes from the corresponding private key.
The private key — often represented as WIF for import — enables spending.
A compatible wallet can import or sweep the private key/WIF and discover spendable outputs associated with it.
COBRA intentionally stores no recovery copy. There is no COBRA password reset for a standalone Bitcoin private key.
This browser keeps a local log of addresses generated on this device. Every record links directly to the corresponding Bitcoin address on Blockchain.com Explorer. Private keys and WIFs are never placed in the log.
The project originated during postgraduate study in Finance & Data Analytics as an exploration of blockchain technologies, cryptographic keys and Bitcoin address construction. The historical notebook remains untouched in the repository; COBRA does not imply university endorsement or custody of user funds.
COBRA by ol-s-cloud · modern web interface built directly on the original Bitcoin Address Generator repository.
The free web tools remain open. Developers, researchers and teams can reach out to discuss future COBRA API/SDK access, licensed integrations, cryptographic utilities or ways COBRA can contribute to your project.
The API is not publicly launched yet. That is intentional: access, rate limits, licensing and safe handling of cryptographic operations should be designed before opening it broadly.
COBRA is an open-source evolution of the original Bitcoin Address Generator repository. The source, methodology, notebook history and contributions remain visible on GitHub.