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

Hashing
xxhash
blake2
sha1
sha2
md5
hmac

sha1

SHA1 in Lua


local sha1 = require'sha1'

SHA1 algorithm in Lua.

sha1.sha1(s) -> s compute the SHA-1 hash of a string.
sha1.sha1_hmac(s, key) -> s compute the HMAC-SHA1 of a string.

These functions return the binary representation of the hash. To get the hex representation, use glue.tohex.


Last updated: 2 years ago | Edit on GitHub

Package:sha1
Pkg type:Lua
Version: r1-0-gc317f6b
Last commit:
License: Public Domain

Requires: none

Required by: mysql  tarantool  sqlpp  webb  x-widgets 


Top