CryptFormat class

Provides encoding and decoding of PHC string format data.

PHC string format is a standardized way to represent password hashes generated by the competing password hashing algorithms. This format is designed to ensure consistency and interoperability between different password hashing implementations.

The string format specifiction:

$<id>[$v=<version>][$<param>=<value>(,<param>=<value>)*][$<salt>[$<hash>]]
Inheritance

Constructors

CryptFormat()
const

Properties

decoder Converter<String, CryptData>
Returns the decoder of this, converting from T to S.
final
encoder Converter<CryptData, String>
Returns the encoder from S to T.
final
hashCode int
The hash code for this object.
no setterinherited
inverted Codec<String, CryptData>
Inverts this.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(String encoded) CryptData
Decodes encoded data.
inherited
encode(CryptData input) String
Encodes input.
inherited
fuse<R>(Codec<String, R> other) Codec<CryptData, R>
Fuses this with other.
inherited
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