OpenPGP
- gpg used on linux.
- Create keys
- $ gpg --gen-key
- Select key length and enter details, recommeded key length 2048+
- $ gpg --gen-key
- E.g. key-id AABBCCDD
- Export public key in-order to email it to someone
- $ gpg --export --armor AABBCCDD
- List keys
- $ gpg --fingerprint
- Send to key server
- $ gpg --send-keys --keyserver keyserver.ubuntu.com AABBCCDD
- Encrypt txt with gpg
- $ echo -n "Secret_Password" | gpg --armor --encrypt -r PickKEYsummary --comment "comment string"
...