@Test public void testEncrypt() throws Exception { System.out.println("encrypt"); String str = "test"; AES128Cryptor instance = new AES128Cryptor(); String result = instance.encrypt(str); assertNotEquals(str, result); }
@Override public String encrypt(String str) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException { return super.encrypt(str); }
AES128Cryptor extends AESCryptorAbstract { @Override public String encrypt(String str) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException { return super.encrypt(str); } }
AES128Cryptor extends AESCryptorAbstract { @Override public String encrypt(String str) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException { return super.encrypt(str); } AES128Cryptor(); }
AES128Cryptor extends AESCryptorAbstract { @Override public String encrypt(String str) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException { return super.encrypt(str); } AES128Cryptor(); @Override String encrypt(String str); @Override String decrypt(String str); @Override String newKey(); }
AES128Cryptor extends AESCryptorAbstract { @Override public String encrypt(String str) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException { return super.encrypt(str); } AES128Cryptor(); @Override String encrypt(String str); @Override String decrypt(String str); @Override String newKey();  }