public class MD5Digest
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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.public static void bytesToHex(byte[] bytes, byte[] hex, int offset)
Copyright © 2024 PostgreSQL Global Development Group. All rights reserved.