1, encryption algorithm:
- Shift, substitution (classical encryption)
- Symmetric encryption: DES, AES
- Asymmetric encryption: RSA
- hash function algorithm (one-way encryption): MD5, SHA, Mac
- Digital Signature Algorithm: RSA, DSA
Among them, the first three kinds of main completion data encryption and decryption;
The hash function class mainly completes the verification data integrity, prevents the message to be tampered during the transmission;
Digital Signature Class: Complete the verification data integrity, the data source and the sending and receiving parties to verify.
2. Commonly used encryption tools
- Security classes with JDK's own
- Bouncy Castle
- Commons Codec
In the following chapters, the above-mentioned various encryption and decryption algorithms are presented respectively.
Note: This type of blog mainly refers to the Java encryption and decryption Art (2nd edition), more detailed information please refer to this book.
Chapter One Introduction to Java encryption and decryption