Scroll to navigation

NASTY(1) User Commands NASTY(1)


nasty - A tool which helps you to recover your GPG passphrase


nasty [OPTIONS]


nasty is a program that helps you to recover the passphrase of your PGP or GPG-key in case you forget or lost it.


set minimum length of passphrase
set maximum length
set guessing mode:
incremental: try them all
random: try at random
file: read phrases from file (use -i)
file to read the passphrases from
file to write the found passphrase to
charset, one or more from the following:
a: a-z
A: A-Z
0: 0-9
.: all ascii values (32...126)
+: 32...255 (default(!))

show command options


Nasty will not work if you try it with a gpg-agent running in your system. For obvious reasons the agent will ask you the passphrase to access your private key - which you probably don't record, right? :)


This manual page was written by Tiago Bortoletto Vaz <> for the Debian GNU/Linux system (but may be used by others).

September 2009 nasty