public class AES128Cryptor extends AESCryptorAbstract
| Constructor and Description |
|---|
AES128Cryptor()
Constructor for DefaultCryptor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(String str)
Encrypt the string
|
String |
encrypt(String str)
Encrypt the string
|
protected String |
getKey() |
String |
newKey() |
GENpublic AES128Cryptor()
throws NoSuchAlgorithmException,
InvalidKeySpecException,
NoSuchPaddingException,
InvalidKeyException
protected String getKey()
getKey in class AESCryptorAbstractpublic String encrypt(String str) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException
AESCryptorAbstractencrypt in interface Cryptorencrypt in class AESCryptorAbstractNoSuchPaddingExceptionNoSuchAlgorithmExceptionInvalidAlgorithmParameterExceptionInvalidKeyExceptionIllegalBlockSizeExceptionBadPaddingExceptionUnsupportedEncodingExceptionpublic String decrypt(String str) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException
AESCryptorAbstractdecrypt in interface Cryptordecrypt in class AESCryptorAbstractNoSuchPaddingExceptionNoSuchAlgorithmExceptionInvalidAlgorithmParameterExceptionInvalidKeyExceptionIllegalBlockSizeExceptionBadPaddingExceptionUnsupportedEncodingExceptionpublic String newKey()
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.