SHA Hash Issue
July 7, 2008 5:02 PM
Subscribe
Is there a way to convert between two different types of SHA Hashes?
Hey there..I am pretty sure I'm going to be S.O.L. here, but I thought I'd ask anyway. My DB is storing our users passwords in a SHA256 Hash. I need to also access a database that is storing the same passwords in a SHA1 Hash. The application is written in C# and I can convert the passwords into SHA1 and SHA256 no problem but...
My database(256) already has a bunch of passwords stored and we need to populate the other database(1) with these passwords in the other Hash format.
So..Is there a way to take a password stored as a SHA256 Hash and convert it to a SHA1 Hash? Or am I about to reset all of the passwords in my system to accommodate accessing this other database which is using the different hash algorithm.
posted by smithygreg to computers & internet (11 comments total)
Since the hashes are of different length, you could, I suppose, just store them all as-is and verify each type of password differently, depending on the length of its hash. But you probably don't want to do that.
posted by Tomorrowful at 5:15 PM on July 7