com.groupbyinc.flux.common.apache.commons.codec.digest.UnixCrypt.class Maven / Gradle / Ivy
???? 2? @com/groupbyinc/flux/common/apache/commons/codec/digest/UnixCrypt java/lang/Object UnixCrypt.java CON_SALT [I COV2CHAR
SALT_CHARS [C SHIFT2 [Z SKB [[I SPTRANS ()V
this BLcom/groupbyinc/flux/common/apache/commons/codec/digest/UnixCrypt; crypt ([B)Ljava/lang/String; (([BLjava/lang/String;)Ljava/lang/String;
original [B java/util/Random
java/lang/StringBuilder "
# % append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ' (
# ) nextInt (I)I + ,
- (C)Ljava/lang/StringBuilder; ' /
# 0 toString ()Ljava/lang/String; 2 3
# 4 H^[./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]{2,}$ 6 java/lang/String 8 matches (Ljava/lang/String;)Z : ;
9 < "java/lang/IllegalArgumentException > Invalid salt value: @ (Ljava/lang/String;)V B
? C
E
# C charAt (I)C H I
9 J setCharAt (IC)V L M
# N P desSetKey ([B)[I S T
U body ([III)[I W X
Y intToFourBytes (I[BI)V [ \
] ` randomGenerator Ljava/util/Random; numSaltChars I i iChar j c salt Ljava/lang/String; buffer Ljava/lang/StringBuilder; charZero C charOne eSwap0 eSwap1 key schedule out b y u &(Ljava/lang/String;)Ljava/lang/String; 8com/groupbyinc/flux/common/apache/commons/codec/Charsets z UTF_8 Ljava/nio/charset/Charset; | } { ~ getBytes (Ljava/nio/charset/Charset;)[B ? ?
9 ?
? 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; dEncrypt
(IIIII[I)I ? ?
?UUUU permOp (IIII[I)V ? ?
? ? ?3333 ?? left right t results byteToUnsigned (B)I B value ? el r s e0 e1 sArr v fourBytesToInt ([BI)I ? ?
??? hPermOp (III)I ? ?
? ? ? ? ??? ?
??? d ? ?
? offset a n m iValue @abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./ ? toCharArray ()[C ? ?
9 ? 0 0 0 0 0 0 0 0 0 0 0 0 0 0 $ $ $ $ $ $ $ $ $ $ $ $ $ $ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
( ( ( ( ( ( ( ( ( ( ( ( ( ( (( " " " " " " ( ( ( ( (( " "" ( ( ( (" ("(" ? ?? ?? ? ? ? ? ? ?? ? ? ?? A @A @@ @ @ @ A @@ @A @ @ A @ @ A @ ? @ @? @ @ ? @ @? @ ? ? ? ? ? ? ? ? Code LocalVariableTable LineNumberTable
StackMapTable
SourceFile !
? / *? ? ? ? ( ? 0 *? ? ? ? ? ? o s+? ;? Y? M? !?>? #Y? $&? *? !,? .4? 1? !,? .4? 1? 5L? '+7? =? ? ?Y? #Y? $A? *+? *? 5? D?? #YF? GM+? K>+? K6,? O,? O? Q.6? Q.x6?:6?? T????6?? *?? *36 x?T????? V:? Z: ?:
.
? ^ .
? ^
T66 ?6
? S66? @x6
3
~? ?6
|6
? ? ?6
,? a.?? O????????,? 5? ? ? - b c ( d e ? f e ?
g e ? % f e ! G h e $ D i e s s j k j l m p n o w ? p o ? ? q e ? ? r e ? ? s ? ? t ? ? u ? ? v
d f e a w e \ x e
? ? - ? ? ? ? 9 ? E ? ` ? j ? p ? w ? } ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?! ?$ ?+ ?1 ?<