Login js prevent front-end developer tools View password

js code:

 password = '123456'; // password in plain text, the front end can be seen

. let pass = $ base64.encode (password ); // after the preceding plaintext password encryption password invisible 

php decrypted code:
$ password = base64_decode ($ params [ 'password']); // you can see the rear end plaintext password 

for example: $ pass = md5 ($ password ); // then add their own definition of the rules stored in the database encryption

Guess you like

Origin www.cnblogs.com/huangleilei/p/11646310.html