passwordAsync 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:
- passwordSync for the synchronous version of this method.
Implementation
static Future<EncryptionKey> passwordAsync(String password) =>
EncryptionKeyImpl.passwordAsync(password);