public class MD5Digest extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
encode(byte[] user,
byte[] password,
byte[] salt)
Encodes user/password/salt information in the following way: MD5(MD5(password + user) + salt).
|
static byte[] |
MD5_SHA256encode(String password,
String random64code,
byte[] salt) |
static byte[] |
RFC5802Algorithm(String password,
String random64code,
String token) |
static byte[] |
RFC5802Algorithm(String password,
String random64code,
String token,
int server_iteration) |
static byte[] |
RFC5802Algorithm(String password,
String random64code,
String token,
String server_signature,
int server_iteration,
boolean isSha256) |
static byte[] |
SHA256_MD5encode(byte[] user,
byte[] password,
byte[] 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 byte[] SHA256_MD5encode(byte[] user,
byte[] password,
byte[] salt)
public static byte[] MD5_SHA256encode(String password, String random64code, byte[] salt)
public static byte[] RFC5802Algorithm(String password, String random64code, String token)
public static byte[] RFC5802Algorithm(String password, String random64code, String token, String server_signature, int server_iteration, boolean isSha256)
Copyright © 2023 openGauss. All rights reserved.