public interface Encrypter
EncryptionProvider
to encrypt/decrypt all date before it is written using FileAccess
.Modifier and Type | Method and Description |
---|---|
byte[] |
decrypt(byte[] data)
Returns the data that has been decrypted using this Encrypter
|
byte[] |
encrypt(byte[] data)
Returns the data that has been encrypted using this Encrypter
|
java.lang.String |
getDbKey()
Returns the encryption key to use for encrypting a SQLCipher database, if using one.
|
byte[] encrypt(byte[] data) throws java.security.GeneralSecurityException
data
- the byte array of data to be encryptedjava.security.GeneralSecurityException
byte[] decrypt(byte[] data) throws java.security.GeneralSecurityException
data
- the byte array of data to be decryptedjava.security.GeneralSecurityException
java.lang.String getDbKey()