Skip to content

Instantly share code, notes, and snippets.

@Loliver1224
Created March 22, 2021 07:10
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 Loliver1224/37bef7cf8aff234a84fbf4c56d0a93f2 to your computer and use it in GitHub Desktop.
Save Loliver1224/37bef7cf8aff234a84fbf4c56d0a93f2 to your computer and use it in GitHub Desktop.
openssl コマンドによるファイル暗号化
# 暗号化(-pass未指定だと標準入力,-aでBase64形式に,-iterで暗号化回数の指定を推奨(総当り攻撃対策))
openssl aes-256-cbc -e -in [filename] -out [filename] -a -iter [int: iteration] [-pass pass:password | env:環境変数 | file:filename]
# 復号
openssl aes-256-cbc -d -in [filename] -out [filename] -a -iter [int: iteration] [-pass pass:password | env:環境変数 | file:filename]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment