PasswordEncoder class abstract
Interface for password encoding and matching. This is used to hash passwords and verify them against raw passwords. It is a common practice to store hashed passwords in databases instead of plain text passwords.
- Implementers
Constructors
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
-
encode(
String rawPassword) → String - Encodes the raw password into a secure format.
-
matches(
String rawPassword, String encodedPassword) → bool - Checks if the raw password matches the encoded password.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited