create HmacSHA256()
The function generates an HMAC hash for a text a with the algorithm SHA-256.
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. |
Examples
Parameter a |
Parameter b |
Parameter c |
Parameter d |
Result |
Some text |
|
mykey |
|
761d953d601d8a237ceef0a3be7f92b1c025118b3f2a63b7deaa5371d8cdc9e5 |
Some text |
|
mykey |
: |
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 |
|
Base64 |
dh2VPWAdiiN87vCjvn+SscAlEYs/KmO33qpTcdjNyeU= |