Calculate signature
- The pseudo code is as follows:
The derived keys, such as SecretDate, SecretService and SecretSigning, are binary data and may contain non printable characters.
Please note that the order of parameters in HMAC library functions may be different for different programming languages, and the actual situation shall prevail. Here, the pseudo code key parameter key comes before and the message parameter data comes after. Usually, the standard library function will provide the return value in binary format, and it may also provide the return value in hexadecimal format which is friendly to printing. Here, the binary format is used.
Name | Description |
SecretKey | SecretKey: Gu5t9xGARNpq86cd98joQYCN3******* |
Date | The Date field information in the Credential. The value of this example is 2019-02-25. |
Service | Service field information in Credential. The value of this example is cbms. |
- Calculate signature, the pseudo code is as follows:
The calculation results of this example are as follows: 2230eefd229f582d8b1b891af7107b91597240707d778ab3738f756258d7652c