I am working on creating migrating the Java to Layer 7
String password = “testvalue”;
string asciiString = ConvertToAsciiValue(password);
//MD5 encryption MD5CryptoServiceProvider md5service = new MD5CryptoServiceProvider();
byte md5Bytes = md5service.computeHash(System.Text.ASCIIEncoding.UTF8.GetBytes(asciiString));String md5String = “”;
//converting bytes to hex string.
md5String = bytesToHexString(md5Bytes);
I would like to know how the above steps can be executed in Layer 7 using assertions.
If someone can help it would be really helpful
Gateway support few types of encoding/encryption, but not exact the same way. If you want to keep the same, we have SDK for you to build your own assertion, Custom Assertions - CA API Gateway - 9.2 - CA Technologies Documentation
Okay Thanks . Can i know whether for converstion of String to ASCII also requires custom assertion or is there a way to do it ?
Have you looked into the Encode/Decode Data assertion? I believe this assertion is the only one we have that will do any kind of character encoding.
Encode/Decode Data Assertion - CA API Gateway - 9.2 - CA Technologies Documentation
Yup. I did try that and it worked. Thanks a lot for your help on this !