#hs.hash

Various hashing algorithms


#API Overview

Functions - API calls offered directly by the extension


#API Documentation

#Functions

Signaturehs.hash.bMD5(data) -> data
TypeFunction
DescriptionCalculates a binary MD5 hash
Parameters
  • data - A string containing some data to hash
Returns
  • A string containing the binary hash of the supplied data
NotesNone
ExamplesNone
Sourceextensions/hash/libhash.m line 169

Signaturehs.hash.bSHA1(data) -> data
TypeFunction
DescriptionCalculates a binary SHA1 hash
Parameters
  • data - A string containing some data to hash
Returns
  • A string containing the binary hash of the supplied data
NotesNone
ExamplesNone
Sourceextensions/hash/libhash.m line 103

Signaturehs.hash.bSHA256(data) -> data
TypeFunction
DescriptionCalculates a binary SHA256 hash
Parameters
  • data - A string containing some data to hash
Returns
  • A string containing the binary hash of the supplied data
NotesNone
ExamplesNone
Sourceextensions/hash/libhash.m line 125

Signaturehs.hash.bSHA512(data) -> data
TypeFunction
DescriptionCalculates a binary SHA512 hash
Parameters
  • data - A string containing some data to hash
Returns
  • A string containing the binary hash of the supplied data
NotesNone
ExamplesNone
Sourceextensions/hash/libhash.m line 147

Signaturehs.hash.hmacMD5(key, data) -> string
TypeFunction
DescriptionCalculates 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
NotesNone
ExamplesNone
Sourceextensions/hash/libhash.m line 236

Signaturehs.hash.hmacSHA1(key, data) -> string
TypeFunction
DescriptionCalculates 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
NotesNone
ExamplesNone
Sourceextensions/hash/libhash.m line 194

Signaturehs.hash.hmacSHA256(key, data) -> string
TypeFunction
DescriptionCalculates 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
NotesNone
ExamplesNone
Sourceextensions/hash/libhash.m line 208

Signaturehs.hash.hmacSHA512(key, data) -> string
TypeFunction
DescriptionCalculates 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
NotesNone
ExamplesNone
Sourceextensions/hash/libhash.m line 222

Signaturehs.hash.MD5(data) -> string
TypeFunction
DescriptionCalculates an MD5 hash
Parameters
  • data - A string containing some data to hash
Returns
  • A string containing the hash of the supplied data, encoded as hexadecimal
NotesNone
ExamplesNone
Sourceextensions/hash/libhash.m line 87

Signaturehs.hash.SHA1(data) -> string
TypeFunction
DescriptionCalculates an SHA1 hash
Parameters
  • data - A string containing some data to hash
Returns
  • A string containing the hash of the supplied data, encoded as hexadecimal
NotesNone
ExamplesNone
Sourceextensions/hash/libhash.m line 48

Signaturehs.hash.SHA256(data) -> string
TypeFunction
DescriptionCalculates an SHA256 hash
Parameters
  • data - A string containing some data to hash
Returns
  • A string containing the hash of the supplied data, encoded as hexadecimal
NotesNone
ExamplesNone
Sourceextensions/hash/libhash.m line 61

Signaturehs.hash.SHA512(data) -> string
TypeFunction
DescriptionCalculates an SHA512 hash
Parameters
  • data - A string containing some data to hash
Returns
  • A string containing the hash of the supplied data, encoded as hexadecimal
NotesNone
ExamplesNone
Sourceextensions/hash/libhash.m line 74