Package org.wildfly.security.encryption
Class CipherUtil
java.lang.Object
org.wildfly.security.encryption.CipherUtil
A utility for using
Cipher instances to encrypt and encode as well as decode and decrypt clear text Strings.- Author:
- Darran Lofthouse
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CipherUtil
public CipherUtil()
-
-
Method Details
-
encrypt
- Throws:
GeneralSecurityException
-
encrypt
public static byte[] encrypt(byte[] clearBytes, SecretKey secretKey) throws GeneralSecurityException - Throws:
GeneralSecurityException
-
decrypt
- Throws:
GeneralSecurityException
-
decrypt
- Throws:
GeneralSecurityException
-