public class PasswordTools extends Object
| Constructor and Description |
|---|
PasswordTools() |
| Modifier and Type | Method and Description |
|---|---|
static char[] |
createPassword(int length)
Create a random password of length
length. |
static String |
createSalt(int length)
Create a random salt of length
length. |
static String |
hash(String salt,
char[] password)
A one way hash for a clear text password.
|
public static char[] createPassword(int length)
length.length - public static String createSalt(int length)
length. The result is a
String representing the Base64 encoded bytes.length - Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.