portable-libxcrypt

Portable crypt library supporting descrypt, md5crypt, bcrypt, and more

brewmacoslinux
Try with needOr install directly
Source

About

Extended crypt library for descrypt, md5crypt, bcrypt, and others

Commands

libxcrypt

Examples

Generate a bcrypt password hash$ echo 'mypassword' | crypt
Verify a password against an md5crypt hash$ crypt -c md5crypt 'mypassword' '$1$salt$hash'
Link against libxcrypt in C program compilation$ gcc program.c -o program -lxcrypt