passwordAsync static method

Future<EncryptionKey> passwordAsync(
  1. String password
)

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:

Implementation

static Future<EncryptionKey> passwordAsync(String password) =>
    EncryptionKeyImpl.passwordAsync(password);