new, update,
digest, hexdigest —
Lua Cryptographic hash module.
The built-in cryptographic hashing Lua bindings for the are
available via the hash table.
The following hashing schemes are supported by the hash
module.
new(data)
- Compute a digest based on the data.
update()
data
- Using the current digest, process data to compute a
new digest as if all prior data had been concatenated together.
digest()
- Return the hashed digest as a binary array. This resets the context.
hexdigest()
- Take
digest() and convert it to an upper case hex
string. This resets the context.
- digest_size
- Return the size of the digest, in bytes.
- block_size
- Return the block size used in bytes.