Entering a passphrase
To ensure that files/private keys can always be decrypted, only use ASCII characters in passphrases. For example, use a password manager to randomly generate passwords/passphrases.
Interactively
There are three ways of entering a passphrase interactively:
Press
Enteron 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 password manager.Type in your passphrase, press
Enteron your keyboard, and retype the passphrase.Paste your passphrase by right-clicking, press
Enteron your keyboard, and paste the passphrase again.
Here's what randomly generating a passphrase looks like:
$ kryptor -e -p file.txt
Enter a passphrase (leave empty for a random one):
Randomly generated passphrase: lethargic-shivering-confirm-doable-unlearned-fragility-aim-glitchHere's what typing a passphrase looks like:
$ kryptor -e -p file.txt
Enter a passphrase (leave empty for a random one):
Retype passphrase:
Non-interactively
Instead of the above, you can specify -p:"[passphrase]" like so:
To randomly generate a passphrase this way, you can specify -p:" " like so:
This method of passphrase entry can also be used for encrypting and decrypting a private key (e.g. for generating a key pair, encrypting files with a private key, or signing files). However, you must specify -x|--private alongside non-interactive passphrase entry for file encryption/decryption.
Here are some examples:
This shouldn't be used if someone else may see your screen.
Last updated