public class MysqlNativePasswordUtil extends Object
mysql_native_password authentication.| 构造器和说明 |
|---|
MysqlNativePasswordUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
hashPassword(String password,
byte[] salt)
Calculates a hash of the user's password.
|
static byte[] |
hashPassword(String password,
io.netty.buffer.ByteBuf saltBuf) |
public static byte[] hashPassword(String password, io.netty.buffer.ByteBuf saltBuf)
public static byte[] hashPassword(String password, byte[] salt)
password - the user's passwordsalt - the salt send from the server in the ClientHandshakePacket packet.Copyright © 2021. All rights reserved.