PasswordHasher class abstract interface

Contract for password hashing and verification policies.

Implementations must return a self-contained encoded hash from hash. The encoded value must include the algorithm/version and parameters required to verify it later. Implementations must not return or persist plaintext passwords.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

hash(String password) String
Returns a self-contained encoded hash for password, never plaintext.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
verify(String password, String encodedHash) PasswordVerification
Verifies password against encodedHash without throwing for malformed or unsupported encodings, and reports whether a matching hash needs rehashing under the current policy.

Operators

operator ==(Object other) bool
The equality operator.
inherited