I have a requirement to obtain SHA256 of a string and encode the results in Base64 to validate messages. This is a requirement for a payment system provider to confirm the authenticity of their message.
They gave an example.
Original string:
2016050908070514550STANDARD CHART. BANK1000021441123Maxis3MYR2016-05-09T08:07:39.0000000+00:003598D772AGROBANK100033061N1230JQDSHALPKX
Using SHA256 on the string and encode the results in Base64, the result should be:
MTA1NzVkNmE2ZDU4ZmRkYmUxMDYxZDhkYmYyYjcwZDk3YmQ5MzEwMWMxZGVjMzhkYjk2Nzg0MzMzM2ZkMGFlMA==
Question:
a) Can Base64, Hash & HMAC Encryptor plug-in do this for me instead of writing my own JS plugin?
b) Is the result above correct? I can’t seem to obtain the results when I use SHA256 hash and then encoding it in Base64.