2
0

nixio.crypto.lua 361 B

123456789101112131415
  1. --- Cryptographical library.
  2. module "nixio.crypto"
  3. --- Create a hash object.
  4. -- @class function
  5. -- @name nixio.crypto.hash
  6. -- @param algo Algorithm ["sha1", "md5"]
  7. -- @return CryptoHash Object
  8. --- Create a HMAC object.
  9. -- @class function
  10. -- @name nixio.crypto.hmac
  11. -- @param algo Algorithm ["sha1", "md5"]
  12. -- @param key HMAC-Key
  13. -- @return CryptoHash Object