Trying to HMAC-SHA256 and BASE64 a string

I am trying to perform a conversion on UiPath on a string, but getting different results to online tools.

My Flow

Output witten in UiPath - NjM4ODRDMUNCQzQ3RjBCOEYzNjUxQjY1NEFCMzE2M0I3MEM4M0U5NTAxRjc5QTNGOTdDQzI1QTAwQzAzQjM2Mg==

however using the online tool (which I know is giving the correct output) - Free HMAC-SHA256 Online Generator Tool | Devglan

I cant seem to replicate this result in UiPath, any help?

Hi,

Because output of Hash Text activity is not byte array but text.

Can you try as the following sample?

arrbyte = Enumerable.Range(0,res.Length \2).Select(Function(i) Convert.ToByte(res.Substring(i*2,2),16)).ToArray()

Sample20230806-1aL.zip (2.6 KB)

Regards,