*2john utilities extract crackable hashes from password-protected files. The workflow is always the same: extract the hash, then crack it with john or feed it to hashcat with the right mode.
Office Documents
Covers.docx, .xlsx, .pptx (Office 2007+) and the legacy .doc, .xls, .ppt (Office 97-2003).
ZIP Archives
Classic PKZIP encryption and WinZip AES are different formats with different modes.RAR Archives
RAR3 and RAR5 use different algorithms;rar2john outputs both formats.
7-Zip
pdf2john handles the extraction.
KeePass
KeePass databases are high-value targets. They are slow to crack: use a targeted wordlist.SSH Private Keys
Passphrase-protected private keys (id_rsa, id_ed25519, etc.).