libmcrypt is the companion library used by Mcrypt, which is itself an enhanced replacement for the old crypt command.
libmcrypt allows developers to use a wide range of encryption functions without making drastic changes to their code. It contains the actual encryption functions and provides a standardized mechanism for accessing them.