Class ScryptParams
java.lang.Object
pl.edu.icm.unity.stdext.credential.pass.ScryptParams
Parameters governing Scrypt algorithm.
Allows to be converted to Map, useful as copy of parameters needs to be stored with
particular hashed password information.
- Author:
- K. Benedyczak
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionScryptParams(int workFactor) ScryptParams(int workFactor, int blockSize, int parallelization, int length) ScryptParams(Map<String, Object> params) -
Method Summary
-
Field Details
-
MIN_WORK_FACTOR
public static final int MIN_WORK_FACTOR- See Also:
-
MAX_WORK_FACTOR
public static final int MAX_WORK_FACTOR- See Also:
-
-
Constructor Details
-
ScryptParams
-
ScryptParams
public ScryptParams(int workFactor, int blockSize, int parallelization, int length) -
ScryptParams
public ScryptParams() -
ScryptParams
public ScryptParams(int workFactor)
-
-
Method Details
-
sanitize
public void sanitize() -
getWorkFactor
public int getWorkFactor() -
getBlockSize
public int getBlockSize() -
getParallelization
public int getParallelization() -
getLength
public int getLength() -
hasStrongerRequirementsThen
-
hashCode
public int hashCode() -
equals
-
toMap
-