Skip to content

Instantly share code, notes, and snippets.

@caarmen
Last active April 23, 2023 07:28
Show Gist options
  • Select an option

  • Save caarmen/0bdd34bf5c7e332368b2 to your computer and use it in GitHub Desktop.

Select an option

Save caarmen/0bdd34bf5c7e332368b2 to your computer and use it in GitHub Desktop.
use gpg to encrypt a file with a password
gpg -c --cipher-algo AES256 --symmetric mysecretlife.doc
@caarmen

caarmen commented Apr 23, 2023

Copy link
Copy Markdown
Author

to verify you typed the correct password, decrypt it disabling cache (otherwise it may not ask for you to type the password):

gpg -d --no-symkey-cache mysecretlife.doc.gpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment