Files
harbour-core/tests/sha1.prg
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

19 lines
438 B
Plaintext

/*
* 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