GPGForce is a simple Go application that generates GPG key pairs with custom fingerprint prefixes. It utilizes parallel processing to efficiently search for keys matching the desired prefix pattern.
- Generate GPG key pairs with custom fingerprint prefixes
- Parallel processing using all available CPU cores
- Real-time progress monitoring
- Secure key storage with encryption
- Go
- Environment variables:
GPG_KEY_PASSWORD: Required — Password used to encrypt the private key with AES256NAME: Name for the GPG keyEMAIL: Email address for the GPG keyCOMMENT: Comment for key
git clone https://github.com/tatlilimon/gpgforce.git
cd gpgforce
./install.shThis will build the binary and install it to /usr/local/bin, making it available as a system-wide command. You'll need sudo privileges for the installation.
gpgforce <desired-prefix>Example:
gpgforce AAThis will generate a GPG key pair where the fingerprint starts with "AA" and save the keys in the keys directory:
keys/AA_private.gpg: Encrypted private keykeys/AA_public.gpg: Public key
- Uses 2048-bit RSA keys
- Private keys are encrypted with
GPG_KEY_PASSWORDusing AES256 cipher + SHA256 hashing - S2K (String-to-Key) iteration count set to 65,011,712 (maximum) for passphrase derivation
- Uses
github.com/ProtonMail/go-crypto— a maintained fork ofgolang.org/x/crypto/openpgp - Private key files are saved with 0600 permissions (owner read/write only)
pkill gpgforce
sudo rm /usr/local/bin/gpgforce
- Implementation to do operations with the GPU and not with the CPU
