A database encryption key, used in DatabaseConfiguration to open or create an encrypted database.
More...
#include <cbl++/Database.hh>
A database encryption key, used in DatabaseConfiguration to open or create an encrypted database.
- Note
- ENTERPRISE EDITION ONLY
◆ EncryptionKey() [1/3]
| cbl::EncryptionKey::EncryptionKey |
( |
| ) |
|
|
inline |
◆ EncryptionKey() [2/3]
Creates a key from an existing C CBLEncryptionKey.
- Parameters
-
| k | The C encryption key to copy. |
◆ EncryptionKey() [3/3]
| cbl::EncryptionKey::EncryptionKey |
( |
std::string_view | password, |
|
|
bool | old = false ) |
|
inline |
Derives an AES-256 key from a password.
- Parameters
-
| password | The password to derive the key from. |
| old | If true, uses the legacy (SHA-1-based) derivation; otherwise uses the current (SHA-256-based) derivation. Pass true only to open databases created with the older algorithm. |
◆ operator=()
The documentation for this class was generated from the following file: