List of utility methods to do String Decrypt
String | decrypt(String keyStr, String encryptData) decrypt byte[] decrypt = null; try { Key key = generateKey(keyStr); Cipher cipher = Cipher.getInstance(AESTYPE); cipher.init(Cipher.DECRYPT_MODE, key); decrypt = cipher.doFinal(Base64.decodeBase64(encryptData)); } catch (Exception e) { e.printStackTrace(); ... |
String | decrypt(String seed, String encrypted) decrypt byte[] rawKey = getRawKey(seed.getBytes()); byte[] enc = toByte(encrypted); byte[] result = decrypt(rawKey, enc); return new String(result); |
String | decrypt(String old) decrypt String key = "a12348a9gde"; if (old == null || old.equals("")) { return ""; String newStr = null; try { byte[] keyData = key.getBytes("UTF-8"); byte[] strData = new byte[old.length() / 2]; ... |