Does anyone know whether the crypto.generateMAC function generates a hmacSHA1 encrypted in binary or hexidecimal?


It returns a binary blob. If you need it in another form, using EncodingUtil (convertToHex or base64Encode, whichever you prefer).

| improve this answer | |
  • You had me for a second. I had to write some code to test it :p – sfdcfox Apr 24 '15 at 20:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.