Showing posts with label Question: How can we encrypt the username and password using PHP?. Show all posts
Showing posts with label Question: How can we encrypt the username and password using PHP?. Show all posts

Wednesday, November 12, 2008

Question: How can we encrypt the username and password using PHP?

Question: How can we encrypt the username and password using PHP?

Answer:
PHP has an md5 function that would normally suffice. Also‚ since the password function in mysql can change between versions‚ using PHP’s md5 function would be better here. As an aside‚ concatonating the record id (or something else handy) before hashing will stop different users with the same password getting the same hash.

How to solve mysql ERROR 1118 (42000) Row size too large

  I had this issue with MYSQL 5.7 . The following worked althoug...