foobuzz

by Valentin, April 9 2018, in tech

How to encrypt messages on Linux

Disable Bash history:

unset HISTFILE

Encrypt:

echo 'your string here' | gpg -c | base64

Decrypt:

echo 'encrypted here' | base64 -d | gpg -d

Both commands will open a graphical prompt for the password.