| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
hash(int iterations,
int memory,
int parallelism,
char[] password,
java.nio.charset.Charset charset,
byte[] salt)
Hashes a password, using the given salt.
|
byte[] |
rawHash(int iterations,
int memory,
int parallelism,
char[] password,
byte[] salt)
Hashes a password and returns the raw bytes.
|
byte[] |
rawHash(int iterations,
int memory,
int parallelism,
char[] password,
java.nio.charset.Charset charset,
byte[] salt)
Hashes a password and returns the raw bytes.
|
byte[] |
rawHash(int iterations,
int memory,
int parallelism,
java.lang.String password,
byte[] salt)
Hashes a password and returns the raw bytes.
|
byte[] |
rawHash(int iterations,
int memory,
int parallelism,
java.lang.String password,
java.nio.charset.Charset charset,
byte[] salt)
Hashes a password and returns the raw bytes.
|
byte[] rawHash(int iterations,
int memory,
int parallelism,
java.lang.String password,
byte[] salt)
Uses UTF-8 encoding.
iterations - Number of iterationsmemory - Sets memory usage to x kibibytesparallelism - Number of threads and compute lanespassword - Password to hashsalt - Salt to use. This will override the default salt lengthbyte[] rawHash(int iterations,
int memory,
int parallelism,
java.lang.String password,
java.nio.charset.Charset charset,
byte[] salt)
iterations - Number of iterationsmemory - Sets memory usage to x kibibytesparallelism - Number of threads and compute lanespassword - Password to hashcharset - Charset of the passwordsalt - Salt to use. This will override the default salt lengthbyte[] rawHash(int iterations,
int memory,
int parallelism,
char[] password,
byte[] salt)
Uses UTF-8 encoding.
iterations - Number of iterationsmemory - Sets memory usage to x kibibytesparallelism - Number of threads and compute lanespassword - Password to hashsalt - Salt to use. This will override the default salt lengthbyte[] rawHash(int iterations,
int memory,
int parallelism,
char[] password,
java.nio.charset.Charset charset,
byte[] salt)
iterations - Number of iterationsmemory - Sets memory usage to x kibibytesparallelism - Number of threads and compute lanespassword - Password to hashcharset - Charset of the passwordsalt - Salt to use. This will override the default salt lengthjava.lang.String hash(int iterations,
int memory,
int parallelism,
char[] password,
java.nio.charset.Charset charset,
byte[] salt)
iterations - Number of iterationsmemory - Sets memory usage to x kibibytesparallelism - Number of threads and compute lanespassword - Password to hashcharset - Charset of the passwordsalt - Salt