Hi,
I am working on a project that needs "Base64 encoding of SHA1 digest". Your article is very helpful. I have downloaded sha1 code from http://www.veign.com/vrc_codeview.asp?type=app&id=76, and wrote a Base64 code. Both are tested successfully using known examples.
But I failed to reproduce your results when I calculate Base64(sha1(Nonce+TimeStamp+Password).
The input string I used is:
d36e316282959a9ed4c89851497a717f2003-12-15T14:43:07Ztaadtaadpstcsm
But the result I got is:
sha1=BADE76A5F7B0AFDE6D96BDEE566AAAACECEA7B75
base64=QkFERTc2QTVGN0IwQUZERTZEOTZCREVFNTY2QUFBQUNFQ0VBN0I3NQ==
I could not reproduce your result. What did I miss? Please let me know.
Thanks
Jack Yan
|