Files
harbour-core/harbour/tests/testsha1.prg
Viktor Szakats 1b4008723b 2012-01-06 16:13 UTC+0100 Viktor Szakats (harbour syenar.net)
* ChangeLog
  * (whole tree)
    * changed e-mail address
2012-01-06 15:28:23 +00:00

23 lines
454 B
Plaintext

/*
* $Id$
*/
/*
* Harbour Project source code:
*
* Rewritten from C: Viktor Szakats (harbour syenar.net)
* www - http://harbour-project.org
*/
PROCEDURE Main()
? ">" + hb_sha1( "hello" ) + "<"
? ">" + hb_sha1( "hello", .F. ) + "<"
? ">" + hb_sha1( "hello", .T. ) + "<"
? ">" + hb_hmac_sha1( "hello", "key" ) + "<"
? ">" + hb_hmac_sha1( "hello", "key", .F. ) + "<"
? ">" + hb_hmac_sha1( "hello", "key", .T. ) + "<"
RETURN