public class Utils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static char[] |
cryptPassword(char[] pwd)
Perform MD5 hashing on the supplied password and return a char array
containing the encrypted password as a printable string.
|
static void |
smudge(byte[] pwd)
Zero the contents of the specified array.
|
static void |
smudge(char[] pwd)
Zero the contents of the specified array.
|
public static void smudge(char[] pwd)
pwd
- the array to zeropublic static void smudge(byte[] pwd)
pwd
- the array to zeropublic static char[] cryptPassword(char[] pwd) throws java.lang.Exception
pwd
- The password to encryptjava.lang.Exception