OpenPGP
OpenPGP encryption and signing tool
Encrypt - decrypt
Send file encrypted with symmetric key by email in CentOS 6.3
- /usr/bin/gpg-agent --daemon /usr/bin/gpg --yes --batch --passphrase symmetricPass -c file.txt
/bin/cat /root/file.txt.gpg | /bin/mail -s "subject xyz" mail.me@example.net
- gpg --version # gpg (GnuPG) 2.0.14
Decrypt file encrypted with symmetric key in CentOS 6.3
- gpg-agent --daemon gpg --yes --batch --passphrase symmetricPass bh.file.txt.gpg
Decrypt file encrypted with symmetric key in Slackware 14
- gpg --passphrase symmetricPass file.txt.gpg
- gpg --version # gpg (GnuPG) 1.4.12
Install pass command
the standard unix password manager (~/.password-store/)
1 sudo apt install pass
2 pass init "userx password storage key"
3 gpg --full-generate-key # 1 3072 0
4 Real name: userx
5 Email address: userx@bitarus.allowed.org
6 Passphrase: ********
7 gpg --list-keys
8 pass init 999999999999999999999999a9aa9a9a9a99a
9 pass add svc/user
10 pass add svc/pwd
11 pass list