@Test public void testEncodeByECB() { String encodeStr = AESUtil.encodeByECB("hello world", KEY); System.out.println("After encode by EBC mode: " + encodeStr); String decodeStr = AESUtil.decodeByECB(encodeStr, KEY); System.out.println("After decode by EBC mode: " + decodeStr); }
public static String encodeByECB(String content, String key) { return encodeByECB(content, key, AesPaddings.AES_ECB_PKCS5); }
AESUtil { public static String encodeByECB(String content, String key) { return encodeByECB(content, key, AesPaddings.AES_ECB_PKCS5); } }
AESUtil { public static String encodeByECB(String content, String key) { return encodeByECB(content, key, AesPaddings.AES_ECB_PKCS5); }  }
AESUtil { public static String encodeByECB(String content, String key) { return encodeByECB(content, key, AesPaddings.AES_ECB_PKCS5); }  static byte[] decryptByCBC(byte[] content, byte[] key, byte[] initVector); static byte[] decryptByCBC(byte[] content, byte[] key, byte[] initVector, String padding); static byte[] encryptByCBC(byte[] content, byte[] key, byte[] initVector); static byte[] encryptByCBC(byte[] content, byte[] key, byte[] initVector, String padding); static byte[] decryptByECB(byte[] content, byte[] key); static byte[] decryptByECB(byte[] content, byte[] key, String padding); static byte[] encryptByECB(byte[] content, byte[] key); static byte[] encryptByECB(byte[] content, byte[] key, String padding); static String decodeByCBC(String content, String key, String initVector); static String decodeByCBC(String content, String key, String initVector, String padding); static String decodeByCBCBase64(String content, String key, String initVector, String padding); static String encodeByCBC(String content, String key, String initVector); static String encodeByCBC(String content, String key, String initVector, String padding); static String encodeByCBCBase64(String content, String key, String initVector, String padding); static String encodeByECB(String content, String key); static String encodeByECB(String content, String key, String padding); static String decodeByECB(String content, String key); }
AESUtil { public static String encodeByECB(String content, String key) { return encodeByECB(content, key, AesPaddings.AES_ECB_PKCS5); }  static byte[] decryptByCBC(byte[] content, byte[] key, byte[] initVector); static byte[] decryptByCBC(byte[] content, byte[] key, byte[] initVector, String padding); static byte[] encryptByCBC(byte[] content, byte[] key, byte[] initVector); static byte[] encryptByCBC(byte[] content, byte[] key, byte[] initVector, String padding); static byte[] decryptByECB(byte[] content, byte[] key); static byte[] decryptByECB(byte[] content, byte[] key, String padding); static byte[] encryptByECB(byte[] content, byte[] key); static byte[] encryptByECB(byte[] content, byte[] key, String padding); static String decodeByCBC(String content, String key, String initVector); static String decodeByCBC(String content, String key, String initVector, String padding); static String decodeByCBCBase64(String content, String key, String initVector, String padding); static String encodeByCBC(String content, String key, String initVector); static String encodeByCBC(String content, String key, String initVector, String padding); static String encodeByCBCBase64(String content, String key, String initVector, String padding); static String encodeByECB(String content, String key); static String encodeByECB(String content, String key, String padding); static String decodeByECB(String content, String key);  }