Hi
we previously use a C#.net 2.0 to create a web app.
Users password were hashed and stored in database using the following code.
private const string encryptionKey = "AE09F72B007CAAB5";
HMACSHA1 hash = new HMACSHA1();
hash.Key = HexToByte(encryptionKey);
encodedPassword = Convert.ToBase64String(
hash.ComputeHash(Encoding.Unicode.GetBytes(password)));
now we intend to migrate to php.
so we face a problem for users when they want to back in.
what php equivalent of the method should be used so that the hash values in the database would work?
eg password to encode is pa55w0rd the hash value gotten is oK9NOVhpTkxLoLfvh1430SFb5gw=
Thank you.