deriveKeyFromPasswordBytes abstract method

Future<Uint8List> deriveKeyFromPasswordBytes({
  1. required Uint8List passwordBytes,
  2. required Uint8List salt,
  3. Uint8List? userIdBytes,
})

Derives a key from password bytes and salt.

passwordBytes should be UTF-8 encoded password bytes. salt is the cryptographic salt. userIdBytes is optional - when provided, will be prepended as "userId:password" per RFC 5054 specification.

Implementation

Future<Uint8List> deriveKeyFromPasswordBytes({
  required Uint8List passwordBytes,
  required Uint8List salt,
  Uint8List? userIdBytes,
});