Last active
August 22, 2016 11:06
-
-
Save ikuwow/360c3c016db41f1dd0ce to your computer and use it in GitHub Desktop.
opensslコマンドで簡単なファイル暗号化 ref: http://qiita.com/ikuwow/items/1cdb057352c06fd3d727
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ openssl aes-256-cbc -e -in rawtext.txt -out encrypted.txt | |
enter aes-256-cbc encryption password: # パスワード入力 | |
Verifying - enter aes-256-cbc encryption password: # もう一度 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ openssl aes-256-cbc -e -in rawtext.txt -out encrypted.txt -pass file:./password.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ openssl aes-256-cbc -d -in encrypted.txt -out decrypted.txt | |
enter aes-256-cbc decryption password: # パスワードを入力 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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