How to find out used hash Algorithm

98 views Asked by At

I'm remaking .net 1.1 web into php. I have a huge database with users and their passwords, that are stored as hash.

In C# code I found this row

user.HashPassword = Globals.ComputeHash(user.Password, Globals.HashAlgoritm, null);

I looked in globals and there are

<add key="hashAlgoritm" value="SHA256"/>

But If I try to hash password in PHP with SHA256, results are different.

Example:

1) Password: emilekstrasa
2) C# password stored in DB: +3KhJwJelkTKk3J22dS03Aby7qKPV0WJYcd1tGhs71rTXjdVFQ==
3) Computed hash in PHP: 83672fe909062f7a28b2bdd8772bb88a42479fb0413e1ad50c83194a69316220

Isn't it posssible that 3) is only hexadec form of 2) ?

Thanks for advices.

0

There are 0 answers