Best Blowfish command line tool?
Asked Answered
R

2

7

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.

Revision answered 11/11, 2010 at 17:45 Comment(0)
S
16

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)

Salem answered 11/11, 2010 at 21:59 Comment(1)
Omit -kfile <passphrase file> to have openssl prompt for password.Basia
F
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

Forebode answered 12/12, 2018 at 22:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.