List of utility methods to do DES Decrypt
String | decryptBytes(String key, byte[] src) decrypt Bytes byte[] bytes = decrypt(key.getBytes(), src); return new String(bytes, encoding); |
byte[] | decryptEDE(byte[] key, byte[] src) decrypt EDE Key deskey = null; DESedeKeySpec spec = new DESedeKeySpec(key); SecretKeyFactory keyfactory = SecretKeyFactory .getInstance("desede"); deskey = keyfactory.generateSecret(spec); Cipher cipher = Cipher.getInstance("desede/CBC/PKCS5Padding"); IvParameterSpec ips = new IvParameterSpec(iv); cipher.init(Cipher.DECRYPT_MODE, deskey, ips); ... |