public final class CryptUtil extends Object
| Modifier and Type | Method | Description |
|---|---|---|
static String |
decryptRsa(Key key,
String encryptedBase64) |
Decrypt using RSA (private or public key).
|
static String |
encryptAes(char[] masterPassword,
String secret) |
Encrypt using AES, salted and seeded.
|
static String |
encryptRsa(Key key,
String secret) |
Encrypt secret using RSA (private or public key).
|
public static String decryptRsa(Key key, String encryptedBase64) throws SecureConfigException
key - private or public key to use to decryptencryptedBase64 - base64 encoded encrypted secretSecureConfigException - If any problem with decryption occurspublic static String encryptRsa(Key key, String secret) throws SecureConfigException
key - private or public key to use to encryptsecret - secret to encryptSecureConfigException - If any problem with encryption occurspublic static String encryptAes(char[] masterPassword, String secret) throws SecureConfigException
masterPassword - master passwordsecret - secret to encryptSecureConfigException - If any problem with encryption occursCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.