sha512

Computing file HASH returns different values.

Does anybody know, why the following code returns different results on some machines? Private Shared Function ComputeHashValue(ByVal Data As String) As String Dim HashAlgorithm As SHA512 = SHA512.Create Dim HashValue() As Byte = HashAlgorithm.ComputeHash(Encoding.ASCII.GetBytes(Data)) ' Looping over the array and ANDing each...

Difference in SHA512 between python hashlib and sha512sum tool

I am getting different message digests from the linux 'sha512sum' tool and the python hashlib library. Here is what I get on my Ubuntu 8.10: $ echo test | sha512sum 0e3e75234abc68f4378a86b3f4b32a198ba301845b0cd6e50106e874345700cc6663a86c1ea125dc5e92be17c98f9a0f85ca9d5f595db2012f7cc3571945c123 - $ python Python 2.5.2 (r252:60911, Oct ...

HMAC-SHA-512 implemention for ActionScript

Hello everyone, As mentioned by the title, I would like to find an implementation for HMAC-SHA-512 written for ActionScript. I was able to find a library that provide HMAC-SHA-256 with other functions, however, I am looking for HMAC-SHA-512 specifically. Thank you Edit: Or, since actionscript and javascript have the same origin, can ...

Porting SHA512 Javascript implemention to Actionscript

Hello Everyone, I am wondering if anyone can help me in porting a SHA-512 implemention in Javascript to Actionscript. Since both Javascript and Actionscript share the same origin, I think porting it will be easy for people who are used to Actionscript. The code for sha512 in javascript can be found here: http://pajhome.org.uk/crypt/md...

How can I reproduce a SHA512 hash in C# that fits the PHP SHA512?

Hello :) The question is pretty much self-explanatory. I Googled many sites, many methods, tried many encodings, but I can't get it to match. I'm trying to make the string "asdasd" match. (http://www.fileformat.info/tool/hash.htm?text=asdasd) ...

How do a use a SecureString to create a SHA1 or SHA512 Hash?

I would like to use a SecureString varible within VB.NET and convert that to a SHA1 or SHA512 hash. How would I securely convert the SecureString to the Byte array that HashAlgorithm.ComputeHash will accept? ...

Ruby password SHA512 hash replication using PHP

Hi there, is there any way I can reproduce this ruby function: def Password.hash(password,salt) Digest::SHA512.hexdigest("#{password}:#{salt}") end In php. Cheers ...

Why do these two files hash to the same value when I use MemoryStream?

Hello, I'm writing a c# routine that creates hashes from jpg files. If I pass in a byte array to my SHA512 object then I get the expected behavior, however, if I pass in a memory stream the two files always hash to the same value. Example 1: SHA512 mySHA512 = SHA512.Create(); Image img1 = Image.FromFile(@"d:\img1.jpg...

Storing a SHA512 Password Hash in Database

In my ASP.NET web app I'm hashing my user passwords with SHA512. Despite much SO'ing and Googling I'm unclear how I should be storing them in the database (SQL2005) - the code below shows the basics of how I'm creating the hash as a string and I'm currently inserting it into the database into a Char(88) column as that seems to be the le...

Reasons why SHA512 is superior to MD5

I was wondering if I could reasons or links to resources explaining why SHA512 is a superior hashing algorithm to MD5. ...

How can I create an SHA512 digest string in Java using bouncy castle?

This unit test is failing: public void testDigest() throws NoSuchAlgorithmException { String hashExpected = "150a14ed5bea6cc731cf86c41566ac427a8db48ef1b9fd626664b3bfbb99071fa4c922f33dde38719b8c8354e2b7ab9d77e0e67fc12843920a712e73d558e197"; MessageDigest md = new MessageDigest(); String hashActual = new String(md.digest("...

SHA512 within Silverlight is not available, is there a managed library available?

SHA512Managed is missing in Silverlight (for Windows Phone 7 CTP SDK), only upto SHA256 is available for use. Does anyone know a .NET class that I could use that offers a self-contained C# or VB.net SHA512 implementation? I need to use this for authentication to a HTTP web service. Thank you ...

Python - Why ever use SHA1 when SHA512 is more secure?

I don't mean for this to be a debate, but I'm trying to understand the technical rationale behind why so many apps use SHA1, when SHA512 is more secure. Perhaps it's simply for backwards compatibility. Besides the obvious larger size (128 chars vs 40), or slight speed differences, is there any other reason why folks use the former? Als...

Convert C# CUSTOM getSHA512 function into Ruby

hello, I was wondering if someone could help me to get this method converted to ruby, is this possible at all? public static string getSHA512(string str){ UnicodeEncoding UE = new UnicodeEncoding(); byte[] HashValue = null; byte[] MessageBytes = UE.GetBytes(str); System.Security.Cryptography.SHA512Managed SHhash = new Sy...

How insecure is a salted SHA1 compared to a salted SHA512

SHA512 is more complex than SHA1, but how much security am I losing by hashing a salted password with SHA1 compared to hashing it with 512? in terms of the time it would take for someone who has the db to crack a single password. I'm using a framework that doesn't give me easy access to SHA512, I'd have to override stuff to make it work,...

How do I generate an encrypted password string, as it is in /etc/shadow?

Hi, I'm trying to mimic the creation of password strings as they appear in /etc/shadow. This is what I've got so far, but the encrypted passwords don't match, when I use the same password and the same salt. 5000 rounds is standard for crypt, so I used that as well, but I don't see where exacly I made a mistake: I'm doing this in Perl,...

[iPhone] hash a password string using SHA512 like C#

Dear All, I am developing logon function for my iPhone Application, so I want to hash the password using the SHA512 hashing algorithm then get the result as NSString (the result should be the same with SHA512 in C#). After spending a lot of time in the internet, I still not find out the solution yet! :( Is there anyone has the solution...