Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
84 lines (71 loc) · 6.67 KB

hs.hash.md

File metadata and controls

84 lines (71 loc) · 6.67 KB

docs » hs.hash


Various hashing algorithms

API Overview

API Documentation

Functions

Signature hs.hash.hmacMD5(key, data) -> string
Type Function
Description Calculates an HMAC using a key and an MD5 hash
Parameters
  • key - A string containing a secret key to use
  • data - A string containing the data to hash
Returns
  • A string containing the hash of the supplied data
Signature hs.hash.hmacSHA1(key, data) -> string
Type Function
Description Calculates an HMAC using a key and a SHA1 hash
Parameters
  • key - A string containing a secret key to use
  • data - A string containing the data to hash
Returns
  • A string containing the hash of the supplied data
Signature hs.hash.hmacSHA256(key, data) -> string
Type Function
Description Calculates an HMAC using a key and a SHA256 hash
Parameters
  • key - A string containing a secret key to use
  • data - A string containing the data to hash
Returns
  • A string containing the hash of the supplied data
Signature hs.hash.hmacSHA512(key, data) -> string
Type Function
Description Calculates an HMAC using a key and a SHA512 hash
Parameters
  • key - A string containing a secret key to use
  • data - A string containing the data to hash
Returns
  • A string containing the hash of the supplied data
Signature hs.hash.MD5(data) -> string
Type Function
Description Calculates an MD5 hash
Parameters
  • data - A string containing some data to hash
Returns
  • A string containing the hash of the supplied data
Signature hs.hash.SHA1(data) -> string
Type Function
Description Calculates an SHA1 hash
Parameters
  • data - A string containing some data to hash
Returns
  • A string containing the hash of the supplied data
Signature hs.hash.SHA256(data) -> string
Type Function
Description Calculates an SHA256 hash
Parameters
  • data - A string containing some data to hash
Returns
  • A string containing the hash of the supplied data
Signature hs.hash.SHA512(data) -> string
Type Function
Description Calculates an SHA512 hash
Parameters
  • data - A string containing some data to hash
Returns
  • A string containing the hash of the supplied data