共通鍵暗号
共通鍵作成
openssl rand -out rand.txt -base64 32 # 共通鍵作成
暗号化するファイル
echo hogehoge > hoge.txt
暗号化
openssl enc \ -e -aes128 -pbkdf2 \ -kfile rand.txt \ -in hoge.txt \ -out encrypted.hoge.txt
復号
openssl enc \ -d -aes128 -pbkdf2 \ -kfile rand.txt \ -in encrypted.hoge.txt \ -out hoge.d.txt