suve

awful: function: md4

Available since rev.36 (v.0.5.0).

Declaration

ascii :md4 ( string $MESSAGE , bool $RAW )
ascii :md4 ( string $MESSAGE )

Summary

Returns a string containing the MD4 checksum of MESSAGE. If RAW is specified and true, the result will be raw binary data. Otherwise, a hexadecimal representation is returned.

Example

# :md4 example
:hex-case s'lower'
:set &hash s'1bee69a46ba811185c194762abaeae90'
:set &calc :md5 s'The quick brown fox jumps over the lazy dog'

!if :eq $calc $hash
    :writeln s'MD4 calculation in awful seems to work fine.'
!else
    :writeln s"lolwut? awful's MD4 function is broken!"
!fi

wikistrona zmodyfikowana 2014/0601/2317