Thursday, September 18, 2014

SHA1 encryption

When we have to involved to develop a interactive web site such as online forum or e commercial simultaneously we need to store and protect the information of user. Password security problem would be usually occurs to mostly website. Developer should be considered majority of scenario or circumstances for choosing a appropriate method for password encryption. SHA1('$p') is a function for protecting a password. The acronym SHA stands for Secure Hash Algorithm, which is a security measure created by the US National Security Agency. It instructs MySQL to encode the password by converting it to a string 40 characters.





 SQL syntax:


 VALUES (' ', '$fn', '$ln', '$e', SHA1('$p'), NOW() )";

No comments:

Post a Comment