lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>Are there any good collections of hash function in
>a C based Lua lib?

>Usual stuff like bcrypt, the SHA2 family, and
>maybe some more modern functions too.

LuaOSSL has submodules called openssl.cipher, openssl.digest, openssl.hmac and openssl.kdf You could omit all the other code and just link these parts (dynamically or statically) with the libcrypto part of OpenSSL.

OpenSSL itself supports most hash and KDF functions you will ever need, including SHA{1,2,3}. It doesn’t support bcrypt, don’t know why, but it does support PBKDF2 and scrypt, amongst other key derivation options.