create Hmac()

Prev Next

The function generates an HMAC hash (hash-based message authentication code) for a text a with the algorithm e.

Parameters

Parameter

Description

a

The text for which the hash value should be generated.

b

The encoding to be used. Default: "UTF8".

c

The secret key to be used.

d

(optional) The separator character. See examples below. Note: If you enter the value "Base64" here, the hash value is encoded with Base64. See examples below.

e

(optional) The HMCA algorithm to be used. Note: Use the three dots to select a value. Default: "HmacSHA256".

Examples

Parameter a

Parameter b

Parameter c

Parameter d

Parameter e

Result

Some text

mykey

HmacSHA256

761d953d601d8a237ceef0a3be7f92b1c025118b3f2a63b7deaa5371d8cdc9e5

Some text

mykey

:

HmacSHA256

76:1d:95:3d:60:1d:8a:23:7c:ee:f0:a3:be:7f:92:b1:c0:25:11:8b:3f:2a:63:b7:de:aa:53:71:d8:cd:c9:e5

Some text

mykey

Base64

HmacSHA256

dh2VPWAdiiN87vCjvn+SscAlEYs/KmO33qpTcdjNyeU=