org.postgresql.util.MD5Digest.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of huaweicloud-dws-jdbc Show documentation
Show all versions of huaweicloud-dws-jdbc Show documentation
Data Warehouse Service JDBC driver
???? 2
; ? ?
U ?
U ?
U ?
) ?
U ? ? ? ?
? ? ?
?
? ? ?
?
? ?
t ?
?
?
? ?
t ?
t ?
t ?
t ?
) ?
) ? ?
? ?
? ?
? ? ? ? ?
% ?
) ? ? ? ?
( ?
? ?
? ? ?
. ?
? ?
) ? ? ?
t ?
) ? ?
) ?
) ?
) ?
) ? ? HMAC_SHA256_ALGORITHM Ljava/lang/String;
ConstantValue ()V Code LineNumberTable LocalVariableTable this Lorg/postgresql/util/MD5Digest; encode
([B[B[B)[B md Ljava/security/MessageDigest;
tempDigest [B
passDigest e (Ljava/security/NoSuchAlgorithmException; user password salt hexDigest
StackMapTable K ?
bytesToHex ([B[BII)V c I j bytes hex offset length lookup [C i pos ` SHA256_MD5encode sha temp_digest pass_digest Ljava/lang/Exception;
hex_digest sha256 ([B)[B str bytesToHexString ([B)Ljava/lang/String; v hv src
stringBuilder Ljava/lang/StringBuilder; ?
charToByte (C)B C hexStringToBytes (Ljava/lang/String;)[B hexString hexChars d GenerateKFromPBKDF2 )(Ljava/lang/String;Ljava/lang/String;I)[B ,Ljava/security/spec/InvalidKeySpecException; random64code server_iteration
iterations chars random32code spec Ljavax/crypto/spec/PBEKeySpec; skf Ljavax/crypto/SecretKeyFactory; hash ? ((Ljava/lang/String;Ljava/lang/String;)[B GetKeyFromHmac ([B[B)[B #Ljava/security/InvalidKeyException; key data
signingKey !Ljavax/crypto/spec/SecretKeySpec; mac Ljavax/crypto/Mac; ? XOR_between_password ([B[BI)[B password1 password2 temp MD5_SHA256encode *(Ljava/lang/String;Ljava/lang/String;[B)[B K
server_key
client_key
stored_key
EncryptString RFC5802Algorithm :(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)[B token server_iteration_350 M(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)[B tokenbyte client_signature hmac_result server_signature h result ;(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)[B
SourceFile MD5Digest.java ? @ MD5 ? ? ? ? ? ? V W ? ? &java/security/NoSuchAlgorithmException java/lang/IllegalStateException "Unable to encode password with MD5 ? ? SHA-256 java/lang/Exception ? @ java/lang/StringBuilder ? ? ? ? ? ^ ? ? ? ? ? ? 0123456789ABCDEF u v x y javax/crypto/spec/PBEKeySpec ? PBKDF2WithHmacSHA1 ?
? *java/security/spec/InvalidKeySpecException } ~ javax/crypto/spec/SecretKeySpec org/postgresql/util/MD5Digest
HmacSHA256 ? ? !java/security/InvalidKeyException k } ? Sever Key UTF-8 y ? ?
Client Key j k m n ? ? ? ? java/lang/Object java/security/MessageDigest java/lang/String javax/crypto/SecretKeyFactory javax/crypto/Mac getInstance 1(Ljava/lang/String;)Ljava/security/MessageDigest; update ([B)V digest ()[B ([BII)V *(Ljava/lang/String;Ljava/lang/Throwable;)V printStackTrace (Ljava/lang/String;)V java/lang/Integer toHexString (I)Ljava/lang/String; ()I append (I)Ljava/lang/StringBuilder; -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; indexOf (I)I equals (Ljava/lang/Object;)Z toUpperCase toCharArray ()[C ([C[BII)V 3(Ljava/lang/String;)Ljavax/crypto/SecretKeyFactory; generateSecret 6(Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey; javax/crypto/SecretKey
getEncoded ([BLjava/lang/String;)V &(Ljava/lang/String;)Ljavax/crypto/Mac; init (Ljava/security/Key;)V doFinal getBytes ! ) ; <