lk/data/gpg.md

41 lines
662 B
Markdown
Raw Normal View History

2020-02-07 23:06:49 +00:00
# Making keys
2020-01-02 00:04:35 +00:00
Generate keys:
2020-02-07 23:06:20 +00:00
> gpg --gen-key
2020-01-02 00:04:35 +00:00
Follow the guide.
# Encrypting a file
2020-02-07 23:06:20 +00:00
> gpg -r malinfreeborn@tutamail.com -e file
2020-01-02 00:04:35 +00:00
`-r` specifies the recipient.
Check you have an encrypted version of your file.
# Changing Expiration Dates
gpg --list-keys
... and then use the second part of 'pub', which is the ID. But that's not appearing here so... on with gpg2?
# Making encrypted files with a local password
Make a password with a password (cypher encryption).
> gpg -c --output passwords.txt
or
> gpg -c > passwords.txt
Put in a password.
Write message then stop with Ctrl+d.
Get the message back out the file with:
> gpg -d passwords.txt