public final class DpapiCipher
extends com.ionic.sdk.cipher.CipherAbstract
| Constructor and Description |
|---|
DpapiCipher(java.lang.String entropy)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] cipherText)
Decrypt a previously encrypted byte array and return the result as another byte array.
|
byte[] |
encrypt(byte[] plainText)
Encrypt a byte array and return the result as another byte array.
|
byte[] |
encrypt(java.lang.String plainText)
Encrypt a string and return the result as a byte array.
|
public DpapiCipher(java.lang.String entropy)
throws com.ionic.sdk.error.IonicException
entropy - additional state (can be from the machine) used to secure the datacom.ionic.sdk.error.IonicException - on use when on non-Windows OSpublic byte[] encrypt(byte[] plainText)
throws com.ionic.sdk.error.IonicException
encrypt in class com.ionic.sdk.cipher.CipherAbstractplainText - array of bytes to encryptcom.ionic.sdk.error.IonicException - on cryptography errorspublic byte[] encrypt(java.lang.String plainText)
throws com.ionic.sdk.error.IonicException
encrypt in class com.ionic.sdk.cipher.CipherAbstractplainText - Plaintext String to encrypt.com.ionic.sdk.error.IonicException - on cryptography errorspublic byte[] decrypt(byte[] cipherText)
throws com.ionic.sdk.error.IonicException
decrypt in class com.ionic.sdk.cipher.CipherAbstractcipherText - array of bytes to decryptcom.ionic.sdk.error.IonicException - on cryptography errors