Skip to content

Commit

Permalink
Merge pull request cheat#40 from 8go/patch-4
Browse files Browse the repository at this point in the history
added "ideal" options to gpg
  • Loading branch information
chrisallenlane authored Oct 6, 2020
2 parents 5dc706b + bd86694 commit 0c8e75a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions gpg
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,32 @@
gpg -K

Should show sec# instead of just sec.

# High-quality options for gpg for symmetric (secret key) encryption

This is what knowledgable people consider a good set of options for
symmetric encryption with gpg to give you a high-quality result.

gpg \
--symmetric \
--cipher-algo aes256 \
--digest-algo sha512 \
--cert-digest-algo sha512 \
--compress-algo none -z 0 \
--s2k-mode 3 \
--s2k-digest-algo sha512 \
--s2k-count 65011712 \
--force-mdc \
--pinentry-mode loopback \
--armor \
--no-symkey-cache \
--output somefile.gpg \
somefile # to encrypt

gpg \
--decrypt \
--pinentry-mode loopback \
--armor \
--output somefile.gpg \
somefile # to decrypt

0 comments on commit 0c8e75a

Please sign in to comment.