At this stage, there are two encryption methods, one-way encryption and two-way encryption. Two-way encryption is the most common encryption algorithm, it will be able to directly understand the plaintext data encryption is not directly understood ciphertext data, and then, when needed, you can use a certain algorithm to decrypt these encrypted later ciphertext into the original understandable plaintext. Bi-directional encryption is suitable for covert communication, for example, when a user is shopping online, they need to submit a credit card password to the website, the user certainly does not want their data to be transmitted directly on the Internet, because this is likely to be "overheard" by other users, users want their credit card password is encrypted, and then in the network transmission, Therefore, after the website receives the user's data, through the decryption algorithm can obtain the accurate credit card account number. One-way encryption is just the opposite, only the data can be encrypted, that is, there is no way to decrypt the data after encryption. One-way encryption is generally used for encryption of user information in the database ...
One-way and two-way encryption