verifyHashBytes method

  1. @override
Future<bool> verifyHashBytes(
  1. List<int> password,
  2. List<int> encodedHash, {
  3. Argon2Type type = Argon2Type.i,
})
override

The Future method to handle verifying a List

Needs a List of type int password, a List of type int encodedHash, as well as an Argon2Type type used for the actual hash.

Returns a Future with the bool of whether the hashing was a match or not

Implementation

@override
Future<bool> verifyHashBytes(List<int> password, List<int> encodedHash,
        {Argon2Type type = Argon2Type.i}) async =>
    verifyHashBytesSync(password, encodedHash, type: type);