Compare commits
2 Commits
d0ce07d403
...
bfe3aca5f7
Author | SHA1 | Date |
---|---|---|
Anton Livaja | bfe3aca5f7 | |
Anton Livaja | 96b982def8 |
|
@ -77,12 +77,12 @@ developed by Phil Zimmermann in the 1990s.
|
|||
* `gpg --list-keys`
|
||||
* `echo "super secret text" > test.txt && cat 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
|
||||
* `gpg --armor -er <email/ID> test.txt && cat test.txt.asc`
|
||||
* `rm test.txt && ls`: remove original file
|
||||
* `gpg --decrypt test.txt.gpg && cat test.txt && rm test.txt`
|
||||
* `gpg --decrypt test.txt.asc && cat test.txt && rm text.txt`
|
||||
* `rm test.txt && ls`
|
||||
* `gpg --decrypt test.txt.gpg > test.txt`
|
||||
* `gpg --decrypt test.txt.asc > test.txt`
|
||||
|
||||
---
|
||||
|
||||
|
@ -225,6 +225,8 @@ developed by Phil Zimmermann in the 1990s.
|
|||
|
||||
## Further Studies
|
||||
|
||||
* [pass](https://www.passwordstore.org/): Unix based `gpg` password manager
|
||||
|
||||
* [OpenPGP for application developers](https://openpgp.dev/book/): Deep dive on OpenPGP
|
||||
|
||||
* [Sequoia](https://sequoia-pgp.org/): alternate OpenPGP implementation in rust
|
||||
|
|
Loading…
Reference in New Issue