Introduction - If you have any usage issues, please Google them yourself
Internship two block cipher encryption
An internship purpose
An understanding of the principles of symmetric encryption algorithms, symmetric encryption algorithms used are familiar: DES, TripleDES, Blowfish
2, DESede encryption algorithm, for example, plus master block encryption algorithm to achieve decryption process.
Second, the practical content
1. [Basic requirements]
With DES/DESede for example, the use of java in the relevant class implements the specified string encryption and decryption.
2. [Achieve prompt]
(1) can be used to create a java class in KeyGenerator symmetric secret key, use the static method getInstance factory class KeyGenerator of () to get KeyGenerator () class object
(2) the method getInstance () argument is a string type, specify the name of the encryption algorithm, such as: Blowfish, DES, DESede, HmacMD5 or HmacSHA1 etc.
(3) the use of factory class Cipher objects can create a password control. The same, getInstance () argument is a string typ