Good morning,
We have found ourselves in the need to use in ODC the "HMAC-SHA256" encryption type for payment methods, but we have seen that there is currently no extension that provides a method that encrypts plaintext to HMAC-SHA256 (only supported in O11: https://www.outsystems.com/forge/component-overview/11713/hmac-sha256-encryption-o11).
We would like to know if there is any expectation to be able to integrate an extension with this encryption method in the current version of ODC.
Thank you very much!
Hi, I haven't yet tried it out myself, but ODC now has some integrated cryptographic methods. The one you are looking for is probably the ComputeMAC action in the Security Source.
ComputMAC is based on the .NET HMAC.Create method. The default algorithm is HMACSHA512. The other options for the algorithm input parameter can be found in the above link (HMACSHA256 in your case).If you are trying it out I would appreciate if you could share your results here.Thank you,
Stefan
exactly you can use this in my case i used this expressionToLower(BinaryDataToHex(ComputeMAC(body, secret,Algorithm:"HMACSHA256")))
Hello Amin,
This version of component for O11 only.
I will try action that Stefan mentioned and check it will give same results if it is not working I will try to create new version for ODC.
Hello Mostafa,
Could you check if the solution that proposed @Stefan Weber worked in ODC? We tried ComputeMAC in ODC but we don't have the hoped result.
Could it be possible you create new version for ODC?
Thank you.
Hi Laia,
I am sorry for late reply.
I am still didn't try to publish this component to ODC but I will start working on this and we update you soon.