Skip to content

Instantly share code, notes, and snippets.

@michelep
Created February 3, 2020 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michelep/9ab02bf5e11d2a4ee96ad33c903984aa to your computer and use it in GitHub Desktop.
Save michelep/9ab02bf5e11d2a4ee96ad33c903984aa to your computer and use it in GitHub Desktop.
Encrypt and decypt file using symmetric enctyption with OpenSSL
Encrypt a file using a supplied password:
$ openssl enc -aes-256-cbc -salt -in file.txt -out file.txt.enc -k PASS
Decrypt a file using a supplied password:
$ openssl enc -aes-256-cbc -d -in file.txt.enc -out file.txt -k PASS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment