Skip to content

Commit

Permalink
added "ideal" options to gpg
Browse files Browse the repository at this point in the history
  • Loading branch information
8go authored Sep 28, 2020
1 parent 64344bc commit bd86694
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 bd86694

Please sign in to comment.