Sign In/My Account | View Cart  
advertisement

Article:
 Atom Authentication
Subject: Base64 encoding of SHA1 digest
Date: 2006-01-11 07:57:52
From: JY123
Response to: Base64 encoding of SHA1 digest

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


Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message


Sponsored By: