Skip to content

Instantly share code, notes, and snippets.

@virtualhobbit
Created July 13, 2020 16:30
Embed
What would you like to do?
// Format the auth date
attAmzAuthDate = attAmzDate.split("T")[0];
// Define string to sign
attStringToSign = 'AWS4-HMAC-SHA256\n' + attAmzDate + '\n' + attAmzAuthDate + '/' + attRegion + '/' + attService + '/aws4_request\n'+ attCanonicalRequestHash;
System.log("The string to sign is: " + '\n' + '\n' + attStringToSign + '\n');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment