A tool for generating pubkys with custom prefixes.
This tool allows you to create a vanity pubky that begins with a specific string of your choice. For example, you might want a public key that starts with your name or a meaningful word.
When a matching key is found, the program automatically creates an encrypted recovery file that can be used to import and access your new vanity pubky.
Just replace [PREFIX] with the desired prefix and [PASSPHRASE] with the desired passphrase.
git clone https://github.com/coreyphillips/vanity-pubky && cd vanity-pubky && cargo build --release && ./target/release/vanity-pubky [PREFIX] --passphrase [PASSPHRASE]- Clone this repository or download the source code:
git clone https://github.com/coreyphillips/vanity-pubky
- Navigate to the project directory:
cd vanity-pubky - Build the release version:
cargo build --release
- The executable will be available at
target/release/vanity_pubky(ortarget/release/vanity_pubky.exeon Windows)
Run the program with the following command:
./vanity_pubky [PREFIX] --passphrase [PASSPHRASE]
Where:
PREFIXis the desired beginning letters of your public keyPASSPHRASEis the passphrase used to encrypt the recovery file (default: "password")
Generate a key that starts with "bob":
./vanity_pubky bob
Generate a key that starts with "bob" and provide your own passphrase:
./vanity_pubky bob --passphrase my_passphrase
The program will display:
- The prefix it's searching for
- The number of threads being used
- Regular status updates during the search
- When a match is found:
- The matching public key
- The corresponding private key
- Number of attempts required
- Time elapsed
- Average search speed (keys/second)
- The location of the saved recovery file
When a matching key is found, the program automatically creates a recovery file with the naming pattern:
PREFIX_pubky_recovery.pkarr
This file is encrypted with the passphrase "password" unless another passphrase was specified.
rustup target add x86_64-pc-windows-msvc
cargo build --release --target x86_64-pc-windows-msvcrustup target add x86_64-apple-darwin
cargo build --release --target x86_64-apple-darwinrustup target add x86_64-unknown-linux-gnu
cargo build --release --target x86_64-unknown-linux-gnu