@Test public void testEncryptToAes128EcbWithBase64() throws Exception { for (int i = 0; i < 100; ++i) { assertNotNull(CryptoUtils.encryptToAes128EcbWithBase64(randomUUID().toString())); } }
public static String encryptToAes128EcbWithBase64(final String source) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException { return encryptToAes128EcbWithBase64(source, DEFAULT_PASSWORD); }
CryptoUtils { public static String encryptToAes128EcbWithBase64(final String source) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException { return encryptToAes128EcbWithBase64(source, DEFAULT_PASSWORD); } }
CryptoUtils { public static String encryptToAes128EcbWithBase64(final String source) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException { return encryptToAes128EcbWithBase64(source, DEFAULT_PASSWORD); }  }
CryptoUtils { public static String encryptToAes128EcbWithBase64(final String source) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException { return encryptToAes128EcbWithBase64(source, DEFAULT_PASSWORD); }  static SecretKeySpec createSecret(final byte[] password, final int length); static String encryptToAes128EcbWithBase64(final String source); static String encryptToAes128EcbWithBase64(final String source, final String password); static String encryptToAes128EcbWithBase64(final byte[] message,
      final SecretKeySpec secretKeySpec); static byte[] encryptToAesGcm(final byte[] message, final byte[] password,
      final byte[] nonce); static byte[] decryptFromAes128EcbWithBase64(final String source); static byte[] decryptFromAes128EcbWithBase64(final String source, final String password); static byte[] decryptFromAes128EcbWithBase64(final String source,
      final SecretKeySpec secretKeySpec); static byte[] decryptFromAesGcm(final byte[] source, final byte[] password,
      final byte[] nonce); }
CryptoUtils { public static String encryptToAes128EcbWithBase64(final String source) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException { return encryptToAes128EcbWithBase64(source, DEFAULT_PASSWORD); }  static SecretKeySpec createSecret(final byte[] password, final int length); static String encryptToAes128EcbWithBase64(final String source); static String encryptToAes128EcbWithBase64(final String source, final String password); static String encryptToAes128EcbWithBase64(final byte[] message,
      final SecretKeySpec secretKeySpec); static byte[] encryptToAesGcm(final byte[] message, final byte[] password,
      final byte[] nonce); static byte[] decryptFromAes128EcbWithBase64(final String source); static byte[] decryptFromAes128EcbWithBase64(final String source, final String password); static byte[] decryptFromAes128EcbWithBase64(final String source,
      final SecretKeySpec secretKeySpec); static byte[] decryptFromAesGcm(final byte[] source, final byte[] password,
      final byte[] nonce); static final String CIPHER_CHARSET; static final String CIPHER_NAME; }