Entering a passphrase
Last updated
Last updated
To ensure that files/private keys can always be decrypted, only use characters in passphrases. For example, use a to randomly generate passwords/passphrases.
There are three ways of entering a passphrase interactively:
Press Enter
on your keyboard (instead of typing anything) to randomly generate a secure passphrase, which will be displayed in the terminal. Make sure you copy this passphrase into a .
Type in your passphrase, press Enter
on your keyboard, and retype the passphrase.
Paste your passphrase by right-clicking, press Enter
on your keyboard, and paste the passphrase again.
Here's what randomly generating a passphrase looks like:
Here's what typing a passphrase looks like:
Instead of the above, you can specify -p:"[passphrase]"
like so:
To randomly generate a passphrase this way, you can specify -p:" "
like so:
Here are some examples:
This shouldn't be used if someone else may see your screen.
This method of passphrase entry can also be used for encrypting and decrypting a private key (e.g. for , with a private key, or ). However, you must specify -x|--private
alongside non-interactive passphrase entry for file encryption/decryption.