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.
- Since:
- 2.0
-
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_VERSION
-
DEFAULT_ITERATIONS
-
DEFAULT_MEMORY_KIB
-
DEFAULT_PARALLELISM
-
DEFAULT_OUTPUT_LENGTH_BITS
-
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
-
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
-
PARAMETER_MEMORY_KIB
-
PARAMETER_PARALLELISM
-
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:
-