hmacsha256bytehashbase64key - We are using this funciton in appian onpremise and now we are deploying to cloud . In cloud this function is not supporting .Is there any alternative function to use instead of hmacsha256bytehashbase64key ?Thanks
Discussion posts and replies are publicly visible
Ramesh Babu said:In cloud this function is not supporting .
What do you mean? Is this from a plugin? Is the plugin deprecated? is there an alternative plugin?
Stefan Helzle - function is deprecated but Plug-in is avaialble.Need alternative function for this hmacsha256bytehashbase64key
Any chance you can use other available functions to replace this specific one?
Stefan Helzle - We used this funciton hmacsha256hash(Key, Text) . Function is giving the result like base64 encoded hmac which is like hmacsha256bytehashbase64key functin output format. But output is exactly is not matching.
In the past, I investigated the Java source code of these plugins to understand what they are actually doing.
Could you get the non-base-64 HMAC output then convert it to base64 manually?
Ramesh Babu said: We used this funciton hmacsha256hash(Key, Text) . Function is giving the result like base64 encoded hmac which is like hmacsha256bytehashbase64key functin output format. But output is exactly is not matching.
Could you help us with what will be inputs and expected output to guide you better.
It depends on whether the original function hashed and then encoded, versus encoded and then hashed. I encountered this function / use case a few years ago, but I don't remember what the outcome of the prototyping was. Ultimately the developer sending the HMAC signature and I avoided the base64 encoding altogether.
understood, i guess what i'm fishing for here is just whether the base64 text encoding in question is possible to separate (being unfamiliar with the named function myself), since I have an OOB expression rule that can handle base64 conversion on an arbitrary string of arbitrary length (and ironically handles far more than the plugin-based base64 conversion function available).