feat/add-openpgp-workshop #1

Merged
anton merged 10 commits from feat/add-openpgp-workshop into master 2024-10-02 22:30:17 +00:00
1 changed files with 8 additions and 8 deletions
Showing only changes of commit bfe3aca5f7 - Show all commits

View File

@ -77,12 +77,12 @@ developed by Phil Zimmermann in the 1990s.
* `gpg --list-keys` * `gpg --list-keys`
* `echo "super secret text" > test.txt && cat test.txt` * `echo "super secret text" > test.txt && cat test.txt`
* `gpg --encrypt --recipient <email/ID> test.txt` * `gpg --encrypt --recipient <email/ID> test.txt`
* `gpg -er <email/ID> <filename> && cat text.txt.gpg`: notice it's a binary * `gpg -er <email/ID> <filename> && cat test.txt.gpg`: notice it's a binary
* You can use `--armor/-a` to encode it as ASCII so you can send the encrypted data as text * You can use `--armor/-a` to encode it as ASCII so you can send the encrypted data as text
* `gpg --armor -er <email/ID> test.txt && cat test.txt.asc` * `gpg --armor -er <email/ID> test.txt && cat test.txt.asc`
* `rm test.txt && ls`: remove original file * `rm test.txt && ls`
* `gpg --decrypt test.txt.gpg && cat test.txt && rm test.txt` * `gpg --decrypt test.txt.gpg > test.txt`
* `gpg --decrypt test.txt.asc && cat test.txt && rm text.txt` * `gpg --decrypt test.txt.asc > test.txt`
--- ---