public class PBKDF2_Hash
extends java.lang.Object
| Constructor and Description |
|---|
PBKDF2_Hash() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
hash(java.lang.String text,
java.lang.String salt)
Hash a string
|
static byte[] |
hash(java.lang.String text,
java.lang.String salt,
int iterationCount,
int keyLength)
Hash a string
|
public static byte[] hash(java.lang.String text,
java.lang.String salt)
text - a textsalt - a saltpublic static byte[] hash(java.lang.String text,
java.lang.String salt,
int iterationCount,
int keyLength)
text - a textsalt - a saltiterationCount - the number of iterations (e.g. 1000)keyLength - the key length (e.g. 256)