lights FAQ Forum   github.com/luapower/md4
md4

Hashing & Compression
blake2
sha2
md4
md5
hmac
xxhash
pmurhash
murmurhash3
crc32
zlib
minizip
libsodium

md4

MD4 hashing


local md4 = require'md4'

A ffi binding of the popular MD4 implementation by Alexander Peslyak.

md4.sum(s[, size]) -> s
md4.sum(cdata, size) -> s
Compute the MD4 sum of a string or a cdata buffer. Returns the binary representation of the hash. To get the hex representation, use glue.tohex().
md4.digest() -> digest
digest(s[, size])
digest(cdata, size)
digest() -> s
Get a MD4 digest function that can consume multiple data chunks until called with no arguments when it returns the final binary MD4 hash.

Last updated: 18 months ago | Edit on GitHub

Pkg type:Lua+ffi
Version: 70fc03c
Last commit:
License: PD
Import ver: 1.0
Requires: +luajit 
Required by: none

Top