In Java development, it is often necessary to consider data security issues, but not only to consider the security of data storage, but also to consider the data transmission security. Since the data security issue, cryptography has come out. To understand data security, you first need to understand cryptography
1. What is cryptography
Cryptography is a technological science that studies the coding and decoding of passwords. This paper studies the objective Law of password change, which is used to compile passwords to keep the secret of communication, called coding, which is used to decipher the password to obtain the communication information, which is called the deciphering of cryptography.
2. Basic common concepts in cryptography
PlainText: Refers to the information to be encrypted. PlainText can be 2 binary data, text files, picture files, etc.
Ciphertext: Refers to plaintext after being encrypted. Ciphertext can make 2 binary data, text files, picture files, etc.
Sender: The person who sent the message.
Recipient: The person receiving the message.
Encryption: The process of converting plaintext to ciphertext.
Encryption algorithm: The conversion algorithm that changes the plaintext to ciphertext.
Encryption keys: Cryptographic keys that are manipulated by cryptographic algorithms.
Decryption: The process of converting ciphertext to clear text.
Decryption algorithm: Convert ciphertext to plaintext conversion algorithm.
Decryption keys: The key used to decrypt the operation by decrypting the algorithm.
Cryptanalysis: The interception of ciphertext attempts to deduce the original cipher or secret key by analyzing the intercepted cipher text.
Java Data Security (i)