Skip to main content
Version: 5.7.0

SignHMACSha256

Given a piece of data and a shared secrect key, calculates an SHA-256 with HMAC signature for the data.

Method Parameters

ParameterDescription
secrectKeyThe shared secrect key used to generate the signature
dataStringThe data string to calculate the signature for

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"response": {
"signature": "ArniCzEFCYHOMZg4f+c7dYXhkT/J0tpQ6+pB2rpOFJQ="
},
"success": true
},
"status": 200
}