Package javatapas.string
Class UnencryptString
java.lang.Object
javatapas.string.UnencryptString
public class UnencryptString extends Object
Unencrypt a String that was encrypted using AES algorithm.
Published at https://www.javatapas.com/string/Java-Unencrypt-String.html
Javadoc at https://www.javatapas.com/docs/javatapas/string/UnencryptString.html
Published at https://www.javatapas.com/string/Java-Unencrypt-String.html
Javadoc at https://www.javatapas.com/docs/javatapas/string/UnencryptString.html
- Version:
- 2021-05-26
- Author:
- Kodiak Brown
-
Constructor Summary
Constructors Constructor Description UnencryptString()
-
Method Summary
Modifier and Type Method Description static String
unencryptString(SecretKey secretKey, String inStr)
Unencrypts a String that was encrypted using AES algorithm.
-
Constructor Details
-
UnencryptString
public UnencryptString()
-
-
Method Details
-
unencryptString
public static String unencryptString(SecretKey secretKey, String inStr) throws NoSuchAlgorithmException, InvalidKeyException, IllegalBlockSizeException, NoSuchPaddingException, BadPaddingExceptionUnencrypts a String that was encrypted using AES algorithm.- Parameters:
secretKey
- The encryption key that was used to encrypt the String.inStr
- The encrypted String that will unencrypted.- Returns:
- Original unencrypted String.
- Throws:
NoSuchAlgorithmException
InvalidKeyException
IllegalBlockSizeException
NoSuchPaddingException
BadPaddingException
-