Previous Topic

Next Topic

HMACSHA1String - MaxBasic Function

HMACSHA1String(SignatureBase: String, Key: String): String

Calculates the Hash-based Message Authentication Code using the SHA1 hash function. Returns the Base64Encoded string value of the calculated hash.

HMACSHA1String function has these named arguments:

Parameter

Description

Signature Base

Required. Signature base for the calculation.

Key

Required. Key to use for the calculation.

Sample code:

  sig = "PDvpzHwTEKh4f8eQNNQsoMV1RiApOk9SPpiC-OCw7-im52Z9bL2OPwFBQ2KhD8pGD1AVRSkcATKZ9zfeZrulQw"

  key = "accredotest"

  HashCode = HMACSHA1String(sig, key)

  print HashCode

Returns: t8i70RcLWIf64q91E/v0jsXGWiM=

See Also

Web Functions

Book Contents

Book Index