Skip to content

Instantly share code, notes, and snippets.

@atarp
Last active June 20, 2021 09:24
Show Gist options
  • Save atarp/279a8133b4b6a8bc95d5a8f311f2fde1 to your computer and use it in GitHub Desktop.
Save atarp/279a8133b4b6a8bc95d5a8f311f2fde1 to your computer and use it in GitHub Desktop.
# encrypt file to_encrypt with simple ecb mode
openssl enc -in to_encrypt -out encrypted -e -aes-256-ecb \
-K 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
# decrypt the file encrypted
openssl enc -in encrypted -out restored -d -aes-256-ecb \
-K 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment