Rephrase
Specialized passphrase recovery tool for GnuPG that helps recover nearly remembered passphrases by trying known parts and alternatives in all combinations. It supports GnuPG keys, symmetric encryption, and LUKS block devices.
Description
Rephrase is designed for users who can nearly remember their GnuPG passphrase but are unsure about certain parts. By specifying the known segments and providing alternatives for uncertain parts, Rephrase systematically tests all possible combinations to identify the correct passphrase.
The tool is particularly useful in recovery scenarios where partial knowledge of the passphrase exists, avoiding exhaustive brute-force attacks. It works with GnuPG keys and encrypted files, as well as LUKS-encrypted block devices, making it versatile for different encryption recovery needs.
Rephrase requires GnuPG to be installed and operates as a command-line tool, providing clear feedback on successful passphrase combinations.
How It Works
Rephrase takes partial passphrase components and their alternatives, generating all possible permutations of these elements. It then tests each combination against the target GnuPG key, symmetric encrypted file, or LUKS block device using GnuPG's verification mechanisms. The tool reports the first combination that successfully decrypts or unlocks the target.
Installation
sudo apt install rephraseFlags
Examples
rephrase <key>rephrase --gpg-key <key>rephrase --gpg-symmetric <encrypted_file>rephrase --luks <block_device>rephrase --gpg-key 0xABC12345rephrase --gpg-symmetric secret.gpgrephrase --luks /dev/sdb1