Skip to content

Instantly share code, notes, and snippets.

@ianmariano
Created March 29, 2013 14:47
Show Gist options
  • Save ianmariano/5271291 to your computer and use it in GitHub Desktop.
Save ianmariano/5271291 to your computer and use it in GitHub Desktop.
openssl encryption snippet

Encrypt a file using AES-256-CBC

$ openssl enc -aes-256-cbc -e < *source-path* > *encrypted-file-path*

Decrypt a file using AES-256-CBC

$ openssl enc -aes-256-cbc -d < *encrypted-source-path* > *decrypted-file-path*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment