public class Argon2idStrategy extends Argon2Strategy
argon2, DEFAULT_HASH_LENGTH, DEFAULT_MEMORY_COST, DEFAULT_PARALLELISM, DEFAULT_SALT_LENGTH, DEFAULT_TIME_COST
Constructor and Description |
---|
Argon2idStrategy()
Create a default argon2id instance
|
Modifier and Type | Method and Description |
---|---|
static Argon2idStrategy |
getInstance(int memoryCost,
int parallelism,
int timeCost,
int saltLength,
int hashLength)
Create a customized argon2id instance
|
getDefault, hash, needsRehash, verify, verifyParameters
public static Argon2idStrategy getInstance(int memoryCost, int parallelism, int timeCost, int saltLength, int hashLength) throws InvalidHashException
For all arguments, there are default values present in superclass to be used if not all values need to be customized
memoryCost
- the memory cost in kibibytesparallelism
- the amount of threads to usetimeCost
- the amount of iterations to usesaltLength
- the length of the generated salthashLength
- the output length for the hashInvalidHashException
- if any of the parameters are invalidCopyright © 2020. All rights reserved.