パッケージ org.postgresql.util
クラス MD5Digest
java.lang.Object
org.postgresql.util.MD5Digest
MD5-based utility function to obfuscate passwords before network transmission.
-
メソッドの概要
修飾子とタイプメソッド説明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).
-
メソッドの詳細
-
encode
public static byte[] encode(byte[] user, byte[] password, byte[] salt) Encodes user/password/salt information in the following way: MD5(MD5(password + user) + salt).- パラメータ:
user
- The connecting user.password
- The connecting user's password.salt
- A four-salt sent by the server.- 戻り値:
- A 35-byte array, comprising the string "md5" and an MD5 digest.
-
bytesToHex
public static void bytesToHex(byte[] bytes, byte[] hex, int offset)
-