LOG IN SIGN UP
Documentation

digest.awsv4_hmac()

Returns an AWSv4 message authentication code based on the supplied key and string. This function automatically prepends "AWS4" in front of the secret access key (the first function parameter) as required by the protocol. This function does not support binary data for its key or string parameters.

Format

STRING
digest.awsv4_hmac(STRING key, STRING date_stamp, STRING region, STRING service, STRING string)

Examples

set resp.http.sig = digest.awsv4_hmac(
    "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY",
    "20120215",
    "us-east-1",
    "iam",
    "hello");