Ask a Question related to ASP.NET Security, Design and Development.
-
Ravi Singh (UCSD) #1
SHA256 C# vs FIPS 180
Hello all
I am using the SHA 256 function call in C# using the input "jonny".
I get the output
0fae56d5786cade88b348cf55a9e4a217406ff5359e517cddf 9fea2bb686ea6f
and I am expecting the output
7a29dc9b52b3e44eef25e0441853324c97489f5e626fc1aa97 e4ede646b50a45
this is from the implementation as givin in the URL below
[url]http://www.cr0.net:8040/code/crypto/sha256/[/url]
I am not sure why this discrepancy exists.
Thanks
Ravi Singh.
Ravi Singh (UCSD) Guest
-
Cannot access web server after enable FIPS compliant cryptography
I have a Windows 2003 Enterprise server hosting my web service and it has the System cryptography set to run in FIPS complaint mode. When I try to... -
.NET cryptography FIPS 140 compliance
I am trying to determine whether the default encryption algorithms used by the .NET framework cryptographic APIs are FIPS 140 compliant (ideally... -
Asp.net SHA256 problem
Hi I'm trying to hash a password by using SHA256Managed but it returns wrong hash. for "123123" the SHA256 must return... -
Win98 Partition problem with fips
Hello all, I am having a last cylinder problem for partitioning my 5gb hdd having win98 which i want to resize to 2 gb thereby giving the rest to... -
Joe Kaplan \(MVP - ADSI\) #2
Re: SHA256 C# vs FIPS 180
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.
"Ravi Singh (UCSD)" <ravisingh11@gmail.com> wrote in message
news:1106769539.235659.237000@z14g2000cwz.googlegr oups.com...> Hello all
>
> I am using the SHA 256 function call in C# using the input "jonny".
> I get the output
>
> 0fae56d5786cade88b348cf55a9e4a217406ff5359e517cddf 9fea2bb686ea6f
>
> and I am expecting the output
>
> 7a29dc9b52b3e44eef25e0441853324c97489f5e626fc1aa97 e4ede646b50a45
> this is from the implementation as givin in the URL below
> [url]http://www.cr0.net:8040/code/crypto/sha256/[/url]
> I am not sure why this discrepancy exists.
>
> Thanks
>
> Ravi Singh.
>
Joe Kaplan \(MVP - ADSI\) Guest



Reply With Quote

