CryptData class

The PHC string format data

Constructors

CryptData(String id, {String? salt, String? hash, String? version, Map<String, String>? params})
Creates an instance of CryptData.
const

Properties

hash → String?
(Optional) The output hash.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
The symbolic name for the hash function.
final
params → Map<String, String>?
(Optional) The algorithm parameters.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
salt → String?
(Optional) The salt.
final
version → String?
(Optional) The algorithm version.
final

Methods

getIntParam(String key) → int?
Get the value of a paramter by key as integer
getParam(String key) → String?
Get the value of a paramter by key
hashBytes() → Uint8List?
Parse the hash using standard Base-64 codec
hasParam(String key) → bool
Check if the key parameter exists
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saltBytes() → Uint8List?
Parse the salt using standard Base-64 codec
toString() → String
A string representation of this object.
inherited
validate() → void
Validate the parameters
versionInt() → int?
Get the version as integer

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

builder(String id) → CryptDataBuilder
Returns a CryptDataBuilder instance for id.