[fpc-pascal] HMAC_SHA1 and FPC

silvioprog silvioprog at gmail.com
Mon Mar 25 23:20:41 CET 2013


2013/3/25 Lukas Gebauer <gebylist at mlp.cz>

> > 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
>
> ...because you must convert binary string into hexadecimal string, if
> you wish. Use:
>
> write(StrToHex(HMAC_SHA1('The quick brown fox jumped over the lazy
> dog.', 'secret')));
>
> --
> Lukas Gebauer.
>
> http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.
> http://geoget.ararat.cz/ - Geocaching solution


Hello Lukas, thank you very much for the information friend. :)

I've a friend who uses Synapse with Delphi and I'll indicate this routine!
;)

-- 
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/20130325/120879ea/attachment.html>


More information about the fpc-pascal mailing list