public class MD5Digest
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
MD5Digest() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
bytesToHex(byte[] bytes,
byte[] hex,
int offset) |
static byte[] |
encode(byte[] user,
byte[] password,
byte[] salt)
Encodes user/password/salt information in the following way: MD5(MD5(password + user) + salt).
|
public static byte[] encode(byte[] user,
byte[] password,
byte[] salt)
user - The connecting user.password - The connecting user's password.salt - A four-salt sent by the server.private static void bytesToHex(byte[] bytes,
byte[] hex,
int offset)