Files
harbour-core/tests/sha1.prg
Viktor Szakats 58faf91453 2016-01-14 19:17 UTC+0100 Viktor Szakats (vszakats users.noreply.github.com)
* *
    % remove brandings and homepage [1] from copyright header. Pass 1 - using script.
      [1] nobody has access to it anymore AFAIK - and it's also just
          a redirect since long
    ! update url in copyright header
    ; this should make the diff between 3.4 and 3.2 easier to manage
2016-01-14 19:18:17 +01:00

17 lines
372 B
Plaintext

/*
*
* Rewritten from C: Viktor Szakats (vszakats.net/harbour)
*/
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