[fpc-pascal] HMAC_SHA1 and FPC
silvioprog
silvioprog at gmail.com
Sat Mar 23 18:02:19 CET 2013
Hello,
I could be wrong, but I think that Synapse function have a bug. See:
Using PHP:
<?php
echo hash_hmac("ripemd160", "The quick brown fox jumped over the lazy
dog.", "secret");
?>
Result:
b8e7ae12510bdfb1812e463a7f086122cf37e4f7
Using the http://www.freeformatter.com site
Result:
5d4db2701c7b07de0e23db3e4f22e88bc1a31a49
Using Synapse:
uses
synacode;
begin
Write(HMAC_SHA1('The quick brown fox jumped over the lazy dog.',
'secret');
end.
Result:
]M?p { ? #?>O"?c I
--
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130323/edf0b483/attachment.html>
More information about the fpc-pascal
mailing list