A simple command-line utility written in Go that supports both Blowfish and Twofish.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
_config.yml
go.mod
go.sum
main.go

README.md

fish

A simple command-line utility written in Go that supports both Blowfish and Twofish.

fish supports reading the encryption key securely from a prompt or passed via the -k option. You may use other UNIX tools such as base64 to encode the resulting cipher text for portability.

Installation

$ go get -u github.com/prologic/fish

usage

Encryption:

$ echo 'Hell World' | ./fish -e -k "$(pwgen 16 1)" - | base64
AAAAAAAAAAC40+fOWO4DOCu8cfLIXKMV

Decryption:

$ echo "AAAAAAAAAAAnQWrQ/Dw26TjqTfxqve87" | base64 -d | ./fish -d -k "${key}" -
Hell World

Add the -2 option to use Twofish instead of Blowfish (//the default//).

License

MIT