Hash class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Properties
rounds
↔ int
bcrypt cost (log rounds) for new hashes. Default: 10.
Each step up doubles the time. Allowed: 4 to 31.
Old hashes keep their own cost, so they still verify.
getter/setter pair
Static Methods
make (String password , {int ? rounds })
→ String
has the password using BCrypt technique
makeAsync (String password , {int ? rounds })
→ Future <String >
same as make , but runs bcrypt in a new isolate,
so the server can answer other requests in the meantime.
verify (String password , String hashedPassword )
→ bool
verify the password with input password and stored hash string.
Returns false when the hash is not a valid bcrypt hash.
verifyAsync (String password , String hashedPassword )
→ Future <bool >
same as verify , but runs bcrypt in a new isolate,
so the server can answer other requests in the meantime.