Skip to content

Instantly share code, notes, and snippets.

@nexxos
Last active December 20, 2015 20:39
Show Gist options
  • Save nexxos/6192048 to your computer and use it in GitHub Desktop.
Save nexxos/6192048 to your computer and use it in GitHub Desktop.
Decrypting/encrypting files via command line (Mac/Linux).
# Command line crypting text files (Mac/Linux).
# Encrypting:
openssl aes-256-cbc -a -salt -in text_original.txt -out text_encrypted.txt
# Decrypting:
openssl aes-256-cbc -d -a -in text_encrypted.txt -out text_decrypted.txt
# ☠ ⚠ ⚡ I'm not a crypto-specialist, so use at your own discretion.
# Have any refinements or caveats?
# Feel free to comment below, I'm eager to learn. ☺
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment