Signaturex.CryptoHelper (Signaturex v1.4.0) View Source

Link to this section Summary

Functions

Compute a SHA-256 MAC message authentication code from app_secret and data to sign.

Constant time string comparison

Compute a MD5, convert to hexadecimal and downcase it.

Link to this section Functions

Link to this function

hmac256_to_string(app_secret, to_sign)

View Source

Specs

hmac256_to_string(binary(), binary()) :: binary()

Compute a SHA-256 MAC message authentication code from app_secret and data to sign.

Link to this function

identical?(string1, string2)

View Source

Constant time string comparison

Specs

md5_to_string(binary()) :: binary()

Compute a MD5, convert to hexadecimal and downcase it.