Search This Blog

Sunday, March 5, 2017

gpg (GnuPG or GNU Privacy Guard)

List keys

$ gpg --list-keys

Add a key

$ gpg --gen-key

Examples

gpg -e -r user hello.txt

xxd -p hello.txt.gpg > hello.txt.gpg.bin

xxd -r -p hello.txt.gpg.bin > decode.txt.gpg

gpg -d decode.txt.gpg

References

1. "Python GPG example"
2. "Creating a new GPG key with subkeys"

No comments:

Post a Comment

Blog Archive