Skip to content

Instantly share code, notes, and snippets.

@npodonnell
Created November 30, 2020 16:59
Show Gist options
  • Save npodonnell/af8d19d7f9b99a9243295f275dd389e4 to your computer and use it in GitHub Desktop.
Save npodonnell/af8d19d7f9b99a9243295f275dd389e4 to your computer and use it in GitHub Desktop.

OpenSSL Encryption Cheatsheet

N. P. O'Donnell, 2020

Encrypting a file with AES 256 CBC

openssl enc -aes-256-cbc -in <plaintext input file> -out <ciphertext output file>

By convention the output file often has the extension .enc

Decrypting a file with AES 256 CBC

openssl enc -d -aes-256-cbc -in <ciphertext input file> -out <plaintext output file>

By convention the output file often has the extension .dec

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