passwordSync static method
Derives an EncryptionKey from a password
.
If your UI uses passwords, call this method to create the key used to encrypt the database. It is designed for security, and deliberately runs slowly to make brute-force attacks impractical.
See also:
- passwordAsync for the asynchronous version of this method.
Implementation
static EncryptionKey passwordSync(String password) =>
EncryptionKeyImpl.passwordSync(password);