nettle

Low-level cryptographic library for encryption and hashing

brewmacoslinux
Try with needOr install directly
Source

About

Low-level cryptographic library

Commands

nettle-hashnettle-pbkdf2

Examples

Calculate SHA256 hash of a file$ nettle-hash sha256 < inputfile
Generate PBKDF2 derived key with password$ nettle-pbkdf2 -s salt -i 1000 -l 32 sha256
Hash a string using MD5$ echo -n 'mystring' | nettle-hash md5