lights FAQ Forum github.com/luapower/md5
This package
md5

Hashing
xxhash
blake2
sha2
md5
hmac

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 md5.hmac(s, key) -> s
Get a function that can consume multiple data chunks until called with no arguments to return the final hash. compute the HMAC-MD5 of a string.

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


Last updated: 37 days ago | Edit on GitHub

Package:md5
Pkg type:Lua+ffi
Version: e7f15c2
Last commit:
License: Public Domain
Import ver: 1.0
Requires: +luajit 
Required by: none

Top