HashCrypt class

Class to perform one-way hashing using common algorithms.

This version of HashCrypt is encoded, meaning that it expects plaintext to be UTF-8, and returns base64 encoded Strings. For more flexibility, HashCryptRaw is recommended.

Constructors

HashCrypt({required HashAlgo algo})
Construct with type of algorithm

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type HashAlgo
Get this HashCrypt's hashing algorithm.
no setter

Methods

check({required String plain, required String hashed}) bool
Check hashed against plain
hash({required String inp}) String
Hash with given input.
override
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