| Modifier and Type | Method and Description |
|---|---|
String |
hash(int iterations,
int memory,
int parallelism,
char[] password)
Hashes a password.
|
String |
hash(int iterations,
int memory,
int parallelism,
char[] password,
Charset charset)
Hashes a password.
|
String |
hash(int iterations,
int memory,
int parallelism,
String password)
Hashes a password.
|
String |
hash(int iterations,
int memory,
int parallelism,
String password,
Charset charset)
Hashes a password.
|
boolean |
verify(String hash,
char[] password)
Verifies a password against a hash.
|
boolean |
verify(String hash,
char[] password,
Charset charset)
Verifies a password against a hash.
|
boolean |
verify(String hash,
String password)
Verifies a password against a hash.
|
boolean |
verify(String hash,
String password,
Charset charset)
Verifies a password against a hash.
|
void |
wipeArray(char[] array)
Wipes the data from the given array.
|
String hash(int iterations, int memory, int parallelism, String password)
iterations - Number of iterationsmemory - Sets memory usage to x kibibytesparallelism - Number of threads and compute lanespassword - Password to hashString hash(int iterations, int memory, int parallelism, String password, Charset charset)
iterations - Number of iterationsmemory - Sets memory usage to x kibibytesparallelism - Number of threads and compute lanespassword - Password to hashcharset - Charset of the passwordString 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 hashString hash(int iterations, int memory, int parallelism, char[] password, 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(String hash, String password)
hash - Hash.password - Password.boolean verify(String hash, String password, Charset charset)
hash - Hash.password - Password.charset - Charset of the passwordboolean verify(String hash, char[] password)
hash - Hash.password - Password.boolean verify(String hash, char[] password, 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.Copyright © 2016. All rights reserved.