function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi, I was hoping for some help changing the following psuedo code to apex.
Signature = URL-Encode( Base64( HMAC-SHA1( YourSecretAccessKeyID, UTF-8-Encoding-Of( StringToSign ) ) ) );
Heres what I've written so far, but theres something off:
stringToSign = EncodingUtil.urlEncode(stringToSign, 'UTF-8');Blob mac = Crypto.generateMac('hmacSHA1', Blob.valueOf(stringToSign), Blob.valueOf('xxx'));stringToSign = EncodingUtil.base64Encode(mac);String encoded = EncodingUtil.urlEncode(stringToSign, 'UTF-8');