Teacher, please tell me how to encrypt the password when designing the table?
johnxu2018-10-28 17:20:00
TP5 has an assistant class Hash::make('12345'); that can generate keys, and Hash::check(); that can verify passwords, which is very easy to use and very safe. The database only needs to set the password type to varchar(64).
格物2018-05-23 13:50:14
The database is just varchar, the real encryption is MD5, usually I will use MD5($password.$token)
酷我时光2018-05-22 22:00:51
When submitting the form, you must encrypt the password. The common encryption method is md5, and then save the encrypted string to the database.