Files
harbour-core/tests/sha1.prg
vszakats a4a357a18b 2013-03-15 11:12 UTC+0100 Viktor Szakats (harbour syenar.net)
* /harbour/* -> /*
    * moved whole Harbour source tree one level up to
      avoid single 'harbour' top dir
2013-03-15 11:13:30 +01: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