Best Blowfish command line tool?

16,155

Solution 1

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)

Solution 2

I coudln't find one I liked; so I wrote one in Go. Here it is: https://prologic.github.io/fish/

Example:

$ echo 'Hello World' | fish -e -k mysecret -

Pretty easy to install with:

$ go get github.com/prologic/fish

Also supports both Blowfish and the newer Twofish

Share:
16,155
German Latorre
Author by

German Latorre

Clean code enthusiast since 1998, expertising C# and ASP.NET since 2003 and loving JavaScript since 2006, I am a serious web app developer and frustrated graphical designer. I love creating beautifully structured apps with any available technology (JavaScript, C# and modern PHP, mainly), and playing with any new framework or programming language as often as I can.

Updated on July 06, 2022

Comments

  • German Latorre
    German Latorre almost 2 years

    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.

  • rustyx
    rustyx over 10 years
    Omit -kfile <passphrase file> to have openssl prompt for password.