Dear all, I am currently having an issue on Pharo 2.0 for windows in using HMAC encryption and subsequent bas64 encoding.
I have loaded the cryptography library from smalltalkhub, but I do not get appropriate results when using the code below: encodedSignature := (SHA256 new) hmac key: apiKey asByteArray; digestMessage: unsignedSignature asByteArray. encodedSignature base64Encoded encodeForHTTP. With values: apiKey := '123456789'. unsignedSignature := 'pharmacistprescriptionsget000001'. the result obtained is correct. But with values apiKey := 'veQC+IBLq5qMO8oGcQupjg=='. userName := 'testpharm'. barCode :='1403122014500'. unsignedSignature := userName,'prescriptionsgetexecuted',barCode. the result is not correct. What am I doing wrong or I do not understand correctly? Kind regards, Spilios -- View this message in context: http://forum.world.st/Base64-or-HMAC-problem-tp4756788.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.