public interface CryptoService
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(String secret,
byte[] privateKey)
Decrypt a secret using the private key specified
|
String |
decrypt(String secret,
byte[] privateKey,
byte[] salt)
Decrypt a secret using the private key specified along with the salt
|
String |
decrypt(String secret,
String privateKey)
Deprecated.
|
String |
decrypt(String secret,
String privateKey,
String salt)
Deprecated.
|
String |
encrypt(String content,
byte[] privateKey)
Encrypt a String content using private key specified
|
String |
encrypt(String content,
byte[] privateKey,
byte[] salt)
Encrypt a string content using private key specified along with salt
|
String |
encrypt(String content,
String privateKey)
Deprecated.
|
String |
encrypt(String content,
String privateKey,
String salt)
Deprecated.
|
@Deprecated String encrypt(String content, String privateKey) throws Exception
encrypt(String, byte[]) instead
Encrypt a String content using private key specifiedcontent - the content to be encryptedprivateKey - the key to encrypt the contentException - when any exception happenedString encrypt(String content, byte[] privateKey) throws Exception
content - the content to be encryptedprivateKey - the key to encrypt the contentException - when any exception happened@Deprecated String encrypt(String content, String privateKey, String salt) throws Exception
encrypt(String, byte[], byte[]) instead
Encrypt a string content using private key specified along with saltcontent - the content to be encryptedprivateKey - the key to encrypt the contentsalt - the salt stringException - when any exception happenedString encrypt(String content, byte[] privateKey, byte[] salt) throws Exception
content - the content to be encryptedprivateKey - the key to encrypt the contentsalt - the salt stringException - when any exception happened@Deprecated String decrypt(String secret, String privateKey) throws Exception
decrypt(String, byte[]) instead
Decrypt a secret using the private key specifiedsecret - the encrypted contentprivateKey - the key to decrypt the secretException - when any exception happened@Deprecated String decrypt(String secret, String privateKey, String salt) throws Exception
decrypt(String, String, String) instead
Decrypt a secret using the private key specified along with the saltsecret - the encrypted contentprivateKey - the key to decrypt the secretsalt - the salt stringException - when any exception happenedString decrypt(String secret, byte[] privateKey) throws Exception
secret - the encrypted contentprivateKey - the key to decrypt the secretException - when any exception happenedString decrypt(String secret, byte[] privateKey, byte[] salt) throws Exception
secret - the encrypted contentprivateKey - the key to decrypt the secretsalt - the salt stringException - when any exception happenedCopyright © 2017. All Rights Reserved.