Step 1
we start with the base64 encoding of the policy
Step 2
Step 2 is not related to step 1
We join "AWS4" and the secret access key
In this example, the secret access key is []
The joined string is []
The output will always be 4 characters longer than the
input.
The input is a string
chacter(s) in length
The output is a string
chacters in length
The input for this step is []
The output for this step is []
Step
Step depends on step
we take the result from step and
use it as the key for the HmacSHA256 function
HmacSHA256 function requires 2 parameters, one string as
the data, one byte array as the key
HmacSHA256 returns a byte array
In this case, we will call the HmacSHA256 function with [] as the message and the byte array from step
as as the key.
Input string for the message is []
It has a length of characters.
Input byte array for the key is a byte array that has a length of bytes.
The hex representation of this byte array is [].
Do note that the key input parameter is the byte array (with the
length of bytes) and not the hex
representation of the byte array (twice as long, having a length of
bytes).
The output is a byte array of 32 bytes in length
The hex representation of the output is []
Do note that output value is the byte array (with the
length of 32 bytes) and not the hex representation of the byte
array (twice as long, having a length of 64 characters).
The output will constantly be an array of 32 bytes.
Step 7
Step 7 depends on both step 1 and step 6
HmacSHA256 function requires 2 parameters, one string as
the data, one byte array as the key
HmacSHA256 returns a byte array
we take the result from step 6 and use it as the key for
the HmacSHA256 function
we take the result from step 1 and use it as the data for
the HmacSHA256 function
Input string for the message is []
It has a length of characters.
Input byte array for the key is a byte array that has a length of bytes.
The hex representation of this byte array is [].
Do note that the key input parameter is the byte array (with the
length of bytes) and not the hex
representation of the byte array (twice as long, having a length of
bytes).
The output is a byte array of 32 bytes in length
The signature is the hex representation of the output.
The signature has a length of
chracters.
The signature is [].