lights FAQ Forum   github.com/luapower/md5
md5

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

md5

md5 hashing


local md5 = require'md5'

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

API

md5.sum(s[, #s]) -> s
Compute the MD5 hash of a string or a cdata buffer.
md5.digest() -> digest
digest(s[, #s])
digest() -> s
Get a function that can consume multiple data chunks until called with no arguments to return the final hash.

NOTE: All functions return the binary representation of the hash. To get the hex representation, use glue.tohex().


Last updated: 23 days ago | Edit on GitHub

Pkg type:Lua+ffi
Version: r2-28-gce6363d
Last commit:
License: PD
Import ver: 1.0
Requires: luajit 
Required by: hmac 

Top