[fpc-pascal] HMAC_SHA1 and FPC

Lukas Gebauer gebylist at mlp.cz
Mon Mar 25 17:12:14 CET 2013


> 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




More information about the fpc-pascal mailing list