Introduction - If you have any usage issues, please Google them yourself
General DES encryption method. First, create a class object of the tool: If DES des = new DES (key), where key is the key followed by more than 8 bits, the original information data is encrypted, encrypt method called directly to get the encrypted string such as String encryptResult = des.encrypt (data) // get the encrypted data string last, to decrypt the encrypted string encryptResult direct call decrypt method, available data consistent with the original data string, such as String decryptResult = des.decrypt (encryptResult) // get the decrypted data string decrypted string decryptResult, consistent with the original information data.