public abstract class AbstractScryptPasswordEncoder extends AbstractConfigurablePasswordEncoder
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CPU_COST
The default CPU cost if no value is specified.
|
static int |
DEFAULT_KEY_LENGTH
The default key length in bytes if no value is specified.
|
static int |
DEFAULT_MEM_COST
The default Memory cost if no value is specified.
|
static int |
DEFAULT_PARALLELIZATION
The default Parallelization value if no value is specified.
|
static int |
DEFAULT_SALT_LENGTH
The default salt length in bytes if no value is specified.
|
static String |
KEY_CPU_COST
Property key for the cpu cost of the algorithm (as defined in scrypt this is N).
|
static String |
KEY_KEY_LENGTH
Property key for the key length in bytes for the algorithm (as defined in scrypt this is dkLen).
|
static String |
KEY_MEM_COST
Property key for the memory cost of the algorithm (as defined in scrypt this is r).
|
static String |
KEY_PARALLELIZATION
Property key for the parallelization of the algorithm (as defined in scrypt this is p) Default is
currently 1.
|
static String |
KEY_SALT_LENGTH
Property key for the salt length in bytes (as defined in scrypt this is the length of S).
|
KEY_PREFIX, KEY_RANDOM| Constructor and Description |
|---|
AbstractScryptPasswordEncoder() |
configure, decodeBytes, doConfigure, doEncode, encode, encodeBytes, getCharset, getPropertyName, getRandom, getTextEncoder, isMatch, matches, parseBoolean, parseInstance, parseInt, parseInt, parseString, toBytespublic static final String KEY_CPU_COST
public static final String KEY_MEM_COST
public static final String KEY_PARALLELIZATION
public static final String KEY_KEY_LENGTH
public static final String KEY_SALT_LENGTH
public static final int DEFAULT_CPU_COST
public static final int DEFAULT_MEM_COST
public static final int DEFAULT_PARALLELIZATION
public static final int DEFAULT_KEY_LENGTH
public static final int DEFAULT_SALT_LENGTH