SHA1 Using php and .net -


Can I get help for the problem below?

I have the sha1 value in the mssql table (password algorithm is encrypted using SHA1 which is provided in the Microsoft .NET Library.)

I created a PHP application It requires me to compare these encrypted values.

Thank you

I think that you compare the password given by the user to the database Want to do with hashed values ​​from In that case, just use the basic php sha1 function:

  if ($ hashes passwordformdb == sha1 ($ plainUserProvidedPassword)) {echo "accept!"; } And {echo "disapproved!"; }  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -