Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Security / January 2005

Tip: Looking for answers? Try searching our database.

SHA256  C# vs FIPS 180

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ravi Singh (UCSD) - 26 Jan 2005 19:58 GMT
Hello all

I am using the SHA 256 function call in C# using the input "jonny".
I get the output

0fae56d5786cade88b348cf55a9e4a217406ff5359e517cddf9fea2bb686ea6f

and I am expecting the output

7a29dc9b52b3e44eef25e0441853324c97489f5e626fc1aa97e4ede646b50a45
this is from the implementation as givin in the URL below
http://www.cr0.net:8040/code/crypto/sha256/
I am not sure why this discrepancy exists.

Thanks

Ravi Singh.
Joe Kaplan \(MVP - ADSI\) - 27 Jan 2005 02:31 GMT
A lot of times things go wrong because you passed in different binary
versions of the same string due to encoding mismatches.  If you pass in the
same array of bytes to each function, do you get the same results?  If so,
then you probably just need to be sure you are using the same binary string
encoding (UTF8, UTF16, ASCII, etc.).

Joe K.

> Hello all
>
[quoted text clipped - 13 lines]
>
> Ravi Singh.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.