Class Argon2HashProvider.Parameters
- Enclosing class:
Argon2HashProvider
Argon2Hash class.
This class contains public constants only. The constants starting with PARAMETER_ are
the parameter names recognized by the
HashSpi.HashFactory.generate(HashRequest) method.
The constants starting with DEFAULT_ are their respective default values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault algorithm name.static final intDefault algorithm version.static final intDefault iterations.static final intDefault memory kib.static final intDefault output length bits.static final intDefault parallelism number.static final StringParameter for modifying the internal algorithm used by Argon2.static final StringArgon2 algorithm version.static final StringArgon2 parameter iterations.static final StringArgon2 parameter memory kib.static final StringThe output length (in bits) of the resulting data section.static final StringArgon2 parameter parallelism.static final StringThe salt to use. -
Method Summary
-
Field Details
-
DEFAULT_ALGORITHM_NAME
Default algorithm name.- See Also:
-
DEFAULT_ALGORITHM_VERSION
Default algorithm version.- See Also:
-
DEFAULT_ITERATIONS
Default iterations.- See Also:
-
DEFAULT_MEMORY_KIB
Default memory kib.- See Also:
-
DEFAULT_PARALLELISM
Default parallelism number.- See Also:
-
DEFAULT_OUTPUT_LENGTH_BITS
Default output length bits.- See Also:
-
PARAMETER_ALGORITHM_NAME
Parameter for modifying the internal algorithm used by Argon2.Valid values are
argon2i(optimized to resist side-channel attacks),argon2d(maximizes resistance to GPU cracking attacks) andargon2id(a hybrid version).The default value is "argon2id" when this parameter is not specified.
- See Also:
-
PARAMETER_ALGORITHM_VERSION
Argon2 algorithm version.- See Also:
-
PARAMETER_SALT
The salt to use.The value for this parameter accepts a Base64-encoded 16byte (128bit) salt.
As for any KDF, do not use a static salt value for multiple passwords.
The default value is a new random 128bit-salt, if this parameter is not specified.
- See Also:
-
PARAMETER_ITERATIONS
Argon2 parameter iterations.- See Also:
-
PARAMETER_MEMORY_KIB
Argon2 parameter memory kib.- See Also:
-
PARAMETER_PARALLELISM
Argon2 parameter parallelism.- See Also:
-
PARAMETER_OUTPUT_LENGTH_BITS
The output length (in bits) of the resulting data section.Argon2 allows to modify the length of the generated output.
The default value is 256 when this parameter is not specified.
- See Also:
-