Skip to main content
Version: 5.9.0

SignHMACSha1

Given a piece of data and a shared secrect key, calculates an SHA-1 with HMAC signature for the data. Encoded as a base64 string.

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": "wk+UqlrHO+vePXYZsZKvye/q4cA="
},
"success": true
},
"status": 200
}