ToolsFebruary 9, 20261 min readby 0xt0pus

gpg2john

Extracts password hashes from GPG/PGP encrypted files for cracking with John


gpg2john

Description

gpg2john converts GPG/PGP private keys into a format that John the Ripper can crack. It is used when you find encrypted PGP keys and need to crack the passphrase.

Usage 1: Convert ASC Key to John Format

Command:

gpg2john tryhackme.asc > hash-asc