here is my code
var sig = crypto.createHash('md5') .update('The quick brown fox jumps over the lazy dog') .digest('base64'); console.log(sig)
leads to nhB9nTcrtoJr2B01QqQZ1g== (on Mac OS X).
I am trying to create the same signature from an ios application. The results are the same in object c, as in converter online sites: line
The quick brown fox jumps over the lazy dog
converted to md5 , I get 9e107d9d372bb6826bd81d3542a419d6 ,
and base64 is OWUxMDdkOWQzNzJiYjY4MjZiZDgxZDM1NDJhNDE5ZDY= .
Why are these lines different? Isn't that what nodejs cryptography module does? What is equivalent to nodejs algorithm for getting base64 digested md5 hash?
nikravi
source share