Package app.ztash.secretsmanager.utils
Class SecretManagerCipherUtil
java.lang.Object
app.ztash.secretsmanager.utils.SecretManagerCipherUtil
-
Field Details
-
SECRET_GEN_ALGORITHM
- See Also:
-
CIPHER_TRANSFORMATION
- See Also:
-
SECRET_KEY_ALGORITHM
- See Also:
-
-
Constructor Details
-
SecretManagerCipherUtil
public SecretManagerCipherUtil()
-
-
Method Details
-
encrypt
public static String encrypt(String plainText, String passPhrase) throws InvalidKeySpecException, NoSuchAlgorithmException, IllegalBlockSizeException, InvalidKeyException, BadPaddingException, NoSuchPaddingException, InvalidAlgorithmParameterException -
decrypt
public static String decrypt(String cipherText, String passPhrase) throws InvalidKeySpecException, NoSuchAlgorithmException, IllegalBlockSizeException, InvalidKeyException, BadPaddingException, NoSuchPaddingException, InvalidAlgorithmParameterException
-