public interface Argon2
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
hash(int iterations,
int memory,
int parallelism,
char[] password)
Hashes a password.
|
java.lang.String |
hash(int iterations,
int memory,
int parallelism,
char[] password,
java.nio.charset.Charset charset)
Hashes a password.
|
java.lang.String |
hash(int iterations,
int memory,
int parallelism,
java.lang.String password)
Hashes a password.
|
java.lang.String |
hash(int iterations,
int memory,
int parallelism,
java.lang.String password,
java.nio.charset.Charset charset)
Hashes a password.
|
boolean |
verify(java.lang.String hash,
char[] password)
Verifies a password against a hash.
|
boolean |
verify(java.lang.String hash,
char[] password,
java.nio.charset.Charset charset)
Verifies a password against a hash.
|
boolean |
verify(java.lang.String hash,
java.lang.String password)
Verifies a password against a hash.
|
boolean |
verify(java.lang.String hash,
java.lang.String password,
java.nio.charset.Charset charset)
Verifies a password against a hash.
|
void |
wipeArray(char[] array)
Wipes the data from the given array.
|
java.lang.String hash(int iterations,
int memory,
int parallelism,
java.lang.String password)
iterations - Number of iterationsmemory - Sets memory usage to x kibibytesparallelism - Number of threads and compute lanespassword - Password to hashjava.lang.String hash(int iterations,
int memory,
int parallelism,
java.lang.String password,
java.nio.charset.Charset charset)
iterations - Number of iterationsmemory - Sets memory usage to x kibibytesparallelism - Number of threads and compute lanespassword - Password to hashcharset - Charset of the passwordjava.lang.String hash(int iterations,
int memory,
int parallelism,
char[] password)
iterations - Number of iterationsmemory - Sets memory usage to x kibibytesparallelism - Number of threads and compute lanespassword - Password to hashjava.lang.String hash(int iterations,
int memory,
int parallelism,
char[] password,
java.nio.charset.Charset charset)
iterations - Number of iterationsmemory - Sets memory usage to x kibibytesparallelism - Number of threads and compute lanespassword - Password to hashcharset - Charset of the passwordboolean verify(java.lang.String hash,
java.lang.String password)
hash - Hash.password - Password.boolean verify(java.lang.String hash,
java.lang.String password,
java.nio.charset.Charset charset)
hash - Hash.password - Password.charset - Charset of the passwordboolean verify(java.lang.String hash,
char[] password)
hash - Hash.password - Password.boolean verify(java.lang.String hash,
char[] password,
java.nio.charset.Charset charset)
hash - Hash.password - Password.charset - Charset of the passwordvoid wipeArray(char[] array)
Use this method after hash creation / verification on the array which contains the user password.
array - The array to wipe.