public class HybridEncryptionUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HybridEncryptionUtil.HybridEncryptedData |
Constructor and Description |
---|
HybridEncryptionUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decrypt(PrivateKey privateKey,
String cipher,
HybridEncryptionUtil.HybridEncryptedData encryptedData) |
static String |
decryptBase64String(String encryptedString,
PrivateKey privateKey,
String separator) |
static String |
decryptString(HybridEncryptionUtil.HybridEncryptedData encryptedData,
PrivateKey privateKey) |
static HybridEncryptionUtil.HybridEncryptedData |
encrypt(PublicKey publicKey,
String cipher,
byte[] message) |
static HybridEncryptionUtil.HybridEncryptedData |
encryptString(String value,
PublicKey publicKey) |
static String |
encryptStringToBase64(String value,
PublicKey publicKey,
String separator) |
static String |
hashPassword(String password) |
static boolean |
verifyPassword(String inputPassword,
String storedHash) |
public static byte[] decrypt(PrivateKey privateKey, String cipher, HybridEncryptionUtil.HybridEncryptedData encryptedData) throws KeyException
KeyException
public static HybridEncryptionUtil.HybridEncryptedData encrypt(PublicKey publicKey, String cipher, byte[] message) throws KeyException
KeyException
public static String decryptString(HybridEncryptionUtil.HybridEncryptedData encryptedData, PrivateKey privateKey) throws KeyException
KeyException
public static HybridEncryptionUtil.HybridEncryptedData encryptString(String value, PublicKey publicKey) throws KeyException
KeyException
public static String decryptBase64String(String encryptedString, PrivateKey privateKey, String separator) throws KeyException
KeyException
public static String encryptStringToBase64(String value, PublicKey publicKey, String separator) throws KeyException
KeyException