Chapter 10 Summary of five symmetric encryption algorithms and chapter 10 encryption algorithms
10.1. DES
- Cracked, no longer secure,Basically no enterprise is in use
- It is the cornerstone of symmetric encryption algorithms and has learning value.
- Key Length: 56 (JDK), 56/64 (BC)
10.2. DESede (Triple DES)
- Use AES to replace DES
- The key computing time is too long and the encryption efficiency is not high.Basically no
- Key Length: 112/168 (JDK), 128/192 (BC)
10.3. AES
- Most commonSymmetric encryption algorithm
- Short key establishment time, good sensitivity, low memory requirements (anyway, good)
- In actual use, the working mode is CTR (preferably implemented using BC). In this mode, the IV parameter (16-bit byte array) needs to be introduced)
- The key length is 128/192/256, of which 192 and 256 need to be configured with no policy restriction permission file (JDK6)
- The two most common filling modes are PKCS5Padding and PKCS7Padding, which are only unique to BC.
10.4 IDEA
- Common email encryption algorithms
- Work mode only supports ECB
- The key length is 128 bits.
10.5. PBE
- The message digest algorithm and symmetric encryption algorithm are integrated. The most common is PBEWithMD5AndDES.
- The working mode is only CBC (security is lost and is not recommended ).PBE is not recommended.