Skip to content

Instantly share code, notes, and snippets.

@chris-piekarski
Created October 7, 2013 22:55
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 chris-piekarski/6876398 to your computer and use it in GitHub Desktop.
Save chris-piekarski/6876398 to your computer and use it in GitHub Desktop.
Symetric Ciphers
Blowfish in CFB
---- exchange password with bob ------>
export PASSWORD=no_nsa
echo "hello, bob!" > plaintext.doc
openssl bf-cfb -salt -in plaintext.doc -out ciphertext.bin -pass env:PASSWORD
openssl base64 -in ciphertext.bin -out base64.txt
---- send to bob ----->
openssl base64 -d -in base64.txt -out base64Bob.bin
openssl bf-cfb -d -salt -in base64Bob.bin -out bobplaintext.doc -pass env:PASSWORD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment