HashedPassword class
Immutable value object returned by PasswordHasher.hash.
The combined string (iterations:saltBase64:hashBase64) is what you
store in Firestore. The original password cannot be recovered from it.
Constructors
- HashedPassword.create({required String hash, required String salt, required int iterations, required String combined})
-
Internal constructor used by PasswordHasher.hash to build this object.
const
- HashedPassword.fromCombined(String combined)
-
Parses a
combinedstring produced by PasswordHasher.hash.factory
Properties
- combined → String
-
A portable string:
iterations:saltBase64:hashBase64.final - hash → String
-
The PBKDF2-derived key, Base64-encoded.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iterations → int
-
The PBKDF2 iteration count used.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- salt → String
-
The random salt used during derivation, Base64-encoded.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited