{"repo":"SixArm/gpg-encrypt","free":true,"listed":false,"github":"https://github.com/SixArm/gpg-encrypt","clone":"git clone https://github.com/SixArm/gpg-encrypt.git","description":"Use GPG to encrypt a file using our best settings","language":"Shell","stars":67,"topics":["gpg","encryption","unix","shell","script"],"license":null,"category":"security-tools","readme_excerpt":"gpg-encrypt: encrypt a file using our best settings Syntax: gpg-encrypt Example: $ gpg-encrypt example.txt Output is a new encrypted file: example.txt.gpg To decrypt the file: gpg -d example.txt.gpg Settings - Symmetric encryption, i.e. we use the same password for encryption and decryption. We choose this because our users can understand symmetric more easily than asymmetic. - Encryption using the aes256 cipher algorithm. We choose this because it's a good balance of strong, fast, and portable. - Digesting using the sha256 digest algorithm. We choose this because it's a good balance of strong, fast, and portable. - No compression, because typically our files are small or already compressed. We choose this to maximize portability, PGP compatibility, and speed. - Explicit settings, rather than depending on defaults. - Suitable for GPG v2; backwards-compatible with GPG v1 when possible. To get our settings, we use these gpg options: - --symmetric : Encrypt with symmetric cipher only This command asks for a passphrase. - --cipher-algo aes256 : Use AES256 as the cipher algorithm - --digest-algo sha256 : Use SHA256 as the digest algorithm. - --cert-digest-algo sha256 : Use SHA256 as the message digest algorithm used when signing a key. - --compress-algo none -z 0 : Do not compress the file. - --s2k-mode 3 : Use passphrase mangling iteration mode. - --s2k-digest-algo sha256 : Use SHA256 as the passphrase iteration algorithm. - --s2k-count 65011712 : Use the maximum number of passph","default_branch":null,"files":null,"tree":[],"storefront":"/r/SixArm","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SixArm/gpg-encrypt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}