The MD4 message-digest algorithm is specified by RFC 1320 [L1 ] This algorithm takes an arbitrary quantity of data and generates a 128-bit message digest from the input. The MD4 algorithm is faster but potentially weaker than the related MD5 algorithm [L2 ].
A tcl-only implementation of MD4 is now part of tcllib. Documentation can be found at http://tcllib.sourceforge.net/doc/md4.html
Examples
% package require md4 1.0.4 % base64::encode [md4::md4 {}] MdbP4NFq6TG3PFnX4MCJwA== % md4::md4 -hex {} 31D6CFE0D16AE931B73C59D7E0C089C0 % base64::encode [md4::md4 a] veUssx3jPkYkXgX729b7JA== % md4::md4 -hex a BDE52CB31DE33E46245E05FBDBD6FB24
Note that by default, the [md4::md4] command produces binary output strings. The -hex option makes it produce output in a human-readable format, and it is also quite common to use base64-encoding as that is more compact.