Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best Blowfish command line tool?

Our application needs to encrypt/decrypt files using (for instance) Blowfish encryption algorithm. We know bcrypt could be a good choice, but it cannot be called directly from our application (as it prompts for key phrase).

Which is the best existing option?

We prefer a Windows tool, though Linux would be good as well.

like image 674
German Latorre Avatar asked Nov 11 '10 17:11

German Latorre


1 Answers

http://www.openssl.org/docs/crypto/blowfish.html programming interface

http://www.openssl.org/docs/apps/enc.html command line interface

Example:

openssl enc -base64 -e -bf-cbc -in <infile> -out <outfile> -kfile <passphrase file>

(replace -e with -d to decrypt)

like image 173
Marcin Avatar answered Sep 17 '22 18:09

Marcin