flm01/openwrt/package/luci/libs/nixio/docsrc/nixio.crypto.lua

15 lines
361 B
Lua

--- Cryptographical library.
module "nixio.crypto"
--- Create a hash object.
-- @class function
-- @name nixio.crypto.hash
-- @param algo Algorithm ["sha1", "md5"]
-- @return CryptoHash Object
--- Create a HMAC object.
-- @class function
-- @name nixio.crypto.hmac
-- @param algo Algorithm ["sha1", "md5"]
-- @param key HMAC-Key
-- @return CryptoHash Object