An Erlang implementation of the MD2 algorithm according to RFC 1319.


This OTP library application contains an erlang-only implementation as
well as a NIF-based implementation of MD2. The NIF based implementation
is taken from the code provided directly in RFC 1319. If the NIF can't be
loaded the erlang implementation (slower) will be used.


The project is built using [rebar](

To use this project as a dependency using `rebar3`, just get it directly from


To compute the MD2 digest of a binary call `md2:hash(Binary)`.