Chapter 1 Introduction to Java encryption and decryption,
1. Encryption Algorithm:
- Shift, substitution (classical encryption)
- Symmetric encryption: DES and AES
- Asymmetric encryption: RSA
- Hash function algorithm (one-way encryption): MD5, SHA, Mac
- Digital signature algorithms: RSA and DSA
The first three methods are used to encrypt and decrypt data;
The hash function class verifies data integrity to prevent tampering during message transmission;
Digital Signature: completes data integrity verification, and verifies the data source and the receiving and receiving sides.
2. Common encryption tools
- Built-in JDK security class
- Bouncy Castle
- Commons Codec
The following sections describe the various encryption and decryption algorithms proposed above.
Note: This type of blog is mainly used for Java encryption and decryption art (version 2nd). For more details, see this book.