HashAlgorithm enum
Hash algorithms supported by CryptoWorker.
⚠️ Security Notice:
md5 and sha1 are cryptographically broken and should not be used for
security-sensitive purposes (e.g., password hashing, integrity verification).
Use sha256 or sha512 instead.
Values
- md5 → const HashAlgorithm
-
Deprecated for security use. MD5 is cryptographically broken. Use sha256 or sha512 for integrity checks.
const HashAlgorithm('MD5') - sha1 → const HashAlgorithm
-
Deprecated for security use. SHA-1 is cryptographically broken. Use sha256 or sha512 for integrity checks.
const HashAlgorithm('SHA-1') - sha256 → const HashAlgorithm
-
const HashAlgorithm('SHA-256') - sha512 → const HashAlgorithm
-
const HashAlgorithm('SHA-512')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
final
Methods
-
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
Constants
-
values
→ const List<
HashAlgorithm> - A constant List of the values in this enum, in order of their declaration.