1, the client receives a response, specific processing
Tests are as follows (will be prompted to re-submit the information already exists)
At this time, can preview a CMD or MongoDB visualization tool, the next can start preview
CMD follows
2, md5 password encryption
At this time, the password can be seen directly from the database, but the private data such as passwords, are typically stored when md5 encryption (php, node, java language can be any other encryption)
The purpose: to prevent the disclosure of information database, user passwords exposed
Here they need to use third-party packages, Github there are many, you can choose a
Here, for example, select the first
Attach GitHub Chinese community here, go directly to search md5 GitHub Chinese community
Then start installation
Took over the introduction of use
Then encrypts the password before storing the secondary data, of course, also be multi-layered encryption, improve security. A layer of encryption, then the low level of encryption is recommended at least two layers
Then do the next test (code 123456)
After successful registration view the database, this time found the password for the encrypted data
note:
Password entered at login can not be directly stored and encrypted password database comparison, and only forward encryption, decryption can not be reversed. So, even if the developer is also no way of knowing the user's password
.