Updated on 2025-03-19 GMT+08:00

Calculating the Signature

Use the SK and to-be-signed string as the input of the encryption hash function, and convert the calculated binary signature into a hexadecimal expression.

The pseudocode is as follows:

signature = HexEncode(HMAC(Secret Access Key, string to sign))

HMAC indicates hash calculation, and HexEncode indicates hexadecimal conversion. Table 1 describes the parameters in the pseudocode.

Table 1 Parameter description

Parameter

Description

Secret Access Key

Signature key

string to sign

To-be-signed string

If the SK is MFyf***VmHc, the calculated signature is as follows:

f12f84a5ecf9eff3206499c4a55b13d1adad745dc8624a2e31f15c6b381d5b80