com.groupbyinc.flux.common.apache.commons.codec.digest.Md5Crypt.class Maven / Gradle / Ivy
???? 2 ? ?com/groupbyinc/flux/common/apache/commons/codec/digest/Md5Crypt java/lang/Object
Md5Crypt.java APR1_PREFIX Ljava/lang/String; $apr1$ BLOCKSIZE I
MD5_PREFIX $1$ ROUNDS ? ()V
this ALcom/groupbyinc/flux/common/apache/commons/codec/digest/Md5Crypt; apr1Crypt ([B)Ljava/lang/String; java/lang/StringBuilder
append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
:com/groupbyinc/flux/common/apache/commons/codec/digest/B64 !
getRandomSalt (I)Ljava/lang/String; # $
" % toString ()Ljava/lang/String; ' (
) (([BLjava/lang/String;)Ljava/lang/String; +
, keyBytes [B java/lang/String 0
startsWith (Ljava/lang/String;)Z 2 3
1 4 md5Crypt :([BLjava/lang/String;Ljava/lang/String;)Ljava/lang/String; 6 7
8 salt &(Ljava/lang/String;)Ljava/lang/String; 8com/groupbyinc/flux/common/apache/commons/codec/Charsets < UTF_8 Ljava/nio/charset/Charset; > ? = @ getBytes (Ljava/nio/charset/Charset;)[B B C
1 D
F 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; 6 +
I ^ K $ M \$ O replace D(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String; Q R
1 S ([\.\/a-zA-Z0-9]{1,8}).* U java/util/regex/Pattern W compile -(Ljava/lang/String;)Ljava/util/regex/Pattern; Y Z
X [ matcher 3(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher; ] ^
X _ java/util/regex/Matcher a find ()Z c d
b e "java/lang/IllegalArgumentException g Invalid salt value: i (Ljava/lang/String;)V k
h l group n $
b o / Bcom/groupbyinc/flux/common/apache/commons/codec/digest/DigestUtils r getMd5Digest ()Ljava/security/MessageDigest; t u
s v java/security/MessageDigest x update ([B)V z {
y | digest ()[B ~
y ? ([BII)V z ?
y ? java/util/Arrays ? fill ([BB)V ? ?
? ? (B)V z ?
y ?
l b64from24bit (BBBILjava/lang/StringBuilder;)V ? ?
" ? reset ?
y ?
saltString p Ljava/util/regex/Pattern; m Ljava/util/regex/Matcher; i prefix keyLen saltBytes ctx Ljava/security/MessageDigest; ctx1 finalb ii j passwd Ljava/lang/StringBuilder;
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
SourceFile ! ?
?
? ? ? / *? ? ? ? 0 ? F *? Y? ? ? &? ? *? -? ? . / ? H + ? n )+? + ? 5? ? Y? ? +? ? *L*+ ? 9? ? ) . / ) : ? Y
Z ! \ ? ! ; ? 5 *? A? E? G? ? . ? i H ? @ *? A? E+? -? ? . : ? ~ 6 ? F *? Y? ? ? &? ? *? J? ? . / ? ? 6 + ? <