deriveKey static method

Future<String> deriveKey(
  1. String password,
  2. String salt
)

Derives a key using scrypt with default parameters

password - The password to derive the key from salt - The salt to use for key derivation Returns a Future

Implementation

static Future<String> deriveKey(String password, String salt) {
  return deriveKeyBytes(password, salt).then((bytes) => _bytesToHex(bytes));
}