PHP Developer Question:

How to encrypt the username and password using PHP?

Tweet Share WhatsApp

Answer:

You can encrypt a password with the following Mysql>SET PASSWORD=PASSWORD("Password");
Or:
You can use the MySQL PASSWORD() function to encrypt username and password. For example,
INSERT into user (password, ...) VALUES (PASSWORD($password")), ...);

Download PHP Developer PDF Read All 57 PHP Developer Questions
Previous QuestionNext Question
How to create table using PHP?How to pass a variable by value?