public class PasswordMapper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
_rcsid |
protected static char[] |
pickChars |
Constructor and Description |
---|
PasswordMapper()
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected static String |
generateRandomPrefix()
Generate a random prefix that will not likely collide with any password
|
String |
mapKeyToPassword(String key)
Map a key back to a password.
|
String |
mapPasswordToKey(String password)
Map a password to a key.
|
public static final String _rcsid
protected static char[] pickChars
public String mapPasswordToKey(String password)
password
- is the password.public String mapKeyToPassword(String key)
key
- is the key (or a password, if changed)protected static String generateRandomPrefix()