public final class EncryptionKey extends Object
An encryption key for a database. This is a symmetric key that be kept secret. It should be stored either in the Keychain, or in the user's memory (hopefully not a sticky note.)
|Constructor and Description|
Initializes the encryption key with a raw AES-128 key 16 bytes in length.
Initializes the encryption key from the given password string.
public EncryptionKey(@NonNull byte key)
key- The raw AES-128 key data.
public EncryptionKey(@NonNull String password)
password- The password string.