Skip to content

Instantly share code, notes, and snippets.

@ikuwow
Last active August 22, 2016 11:06
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 ikuwow/360c3c016db41f1dd0ce to your computer and use it in GitHub Desktop.
Save ikuwow/360c3c016db41f1dd0ce to your computer and use it in GitHub Desktop.
opensslコマンドで簡単なファイル暗号化 ref: http://qiita.com/ikuwow/items/1cdb057352c06fd3d727
$ openssl aes-256-cbc -e -in rawtext.txt -out encrypted.txt
enter aes-256-cbc encryption password: # パスワード入力
Verifying - enter aes-256-cbc encryption password: # もう一度
$ openssl aes-256-cbc -e -in rawtext.txt -out encrypted.txt -pass file:./password.txt
$ openssl aes-256-cbc -d -in encrypted.txt -out decrypted.txt
enter aes-256-cbc decryption password: # パスワードを入力
$ openssl aes-256-cbc -d -in encrypted.txt -out decrypted.txt -pass file:./password.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment