public class Argon2iStrategy extends Argon2Strategy
argon2, DEFAULT_HASH_LENGTH, DEFAULT_MEMORY_COST, DEFAULT_PARALLELISM, DEFAULT_SALT_LENGTH, DEFAULT_TIME_COST
Constructor and Description |
---|
Argon2iStrategy()
Create a default argon2i instance
|
Modifier and Type | Method and Description |
---|---|
static Argon2iStrategy |
getInstance(int memoryCost,
int parallelism,
int timeCost,
int saltLength,
int hashLength)
Create a customized argon2i instance
|
getDefault, hash, needsRehash, verify, verifyParameters
public static Argon2iStrategy 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.