Pbkdf2Algorithm enum
The HMAC that Pbkdf2PasswordEncoder derives keys with; it fixes the hash length too.
Spring (Java): Pbkdf2PasswordEncoder.SecretKeyFactoryAlgorithm.
Values
- pbkdf2WithHmacSha1 → const Pbkdf2Algorithm
-
HMAC-SHA1, giving a 20-byte hash; only to check old hashes.
const Pbkdf2Algorithm(20) - pbkdf2WithHmacSha256 → const Pbkdf2Algorithm
-
HMAC-SHA256, giving a 32-byte hash; the default.
const Pbkdf2Algorithm(32) - pbkdf2WithHmacSha512 → const Pbkdf2Algorithm
-
HMAC-SHA512, giving a 64-byte hash.
const Pbkdf2Algorithm(64)
Properties
- hashBytes → int
-
The length of the derived key, in bytes.
final
- 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
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<
Pbkdf2Algorithm> - A constant List of the values in this enum, in order of their declaration.