加密解密

DESEncryptor encryptor =
   DESEncryptionFactory.getInstance().getEncryptor(DESEncryptionFactory.DESEDE);
  String strEnc = encryptor.encrypt("xyz");
  System.out.println("========"+ strEnc);
  String str = encryptor.decrypt(strEnc);
  System.out.println("=========="+ str);

你可能感兴趣的:(加密解密)