Skip to content

Instantly share code, notes, and snippets.

@masahide
Last active October 4, 2018 00:18
Show Gist options
  • Save masahide/62e5a303ddb04aa327f8e9a9bedbf2dd to your computer and use it in GitHub Desktop.
Save masahide/62e5a303ddb04aa327f8e9a9bedbf2dd to your computer and use it in GitHub Desktop.
opensslコマンドで共通鍵によるブルートフォースアタックに備えた暗号化を行う(復号も) ref: https://qiita.com/yamasaki-masahide/items/20c34391bd2484f88ef7
docker run -v $PWD:/work fedora:29 openssl aes-256-cbc -e -pass file:/work/pass.txt -in /work/input.txt -out /work/enc -iter 654321 -salt
docker run -v $PWD:/work fedora:29 openssl aes-256-cbc -d -pass file:/work/pass.txt -in /work/enc -out /work/dec -iter 654321
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment