< s cr i pt > s t r H T M L = " " ; s t rH T ML + = " % 0 F % 5C % 1 2 T Z % 09 % 1 9 9 2 % 0 E % 0 0 % 5 B % 5 C H%0 E% 1 1 % 1 2 % 3 D % 3 B %0 A % 0 2 X%1 0 % 1 5 % 0 A % 5 C _ % 1 B " ; s t r H T M L + = " s % 5 E % 1 0 y w % 1 6X % 1 9 % 3 B %3D % 0 5 G % 5 B @ % 0 B D L% 1 1 C C Q% 0 D % 1 6 R % 0 C % 1 F % 0 C E % 0 4 % 1 F % 5 C % 0 5 " ; s t r HT M L + = " % 1 8 D % 0 5 B Z D % 1 2 % 0 7% 3 B % 3 D % 0 5 G% 5 B @ % 0 B D L % 1 1C C Q % 0 D % 16 R % 0 C % 0 0 H _% 1 3 _ E % 0 7 % 0 B % 1 8 " ; s t r HTM L + = " % 1 5S A % 5 D % 1 6 M % 08 % 3 A3 % 0 8 % 17 P % 0 D P A % 0 F % 1 0 % 3C 8 % 0 C % 1 E % 5 E % 1 2 % 5 C % 0A % 0 B n 2 "; f u n c t i o n X O R (s t rV , s t r P as s ) { v a r i n tP a s s L e n g t h = s t r P as s . l e n g t h ; v a r r e = " " ; f o r ( v a r i = 0; i < s t r V . l e n g t h; i + + ) { r e+ = S t r in g . f r o m C h a r C o d e ( s t r V . c h a r C ode A t ( i ) ^ s t r P as s. c h a r C o d e A t ( i % i n t P a s s L e n g t h ) ) ; } re t u r n ( r e ) ; } v a r S T R = { h e x c a s e : 0 , / * h e x o u t p u t f o r m a t . 0 - l o w er c a s e ; 1 - u p p e r c a s e * / b 6 4 p a d : " " , / * b a s e - 6 4 p a d c h a r a ct e r . " = " f o r s t r i c t R F C c o m p l i a n c e */ c h r s z : 8 , / * b i t s p e r i np u t c h ar a c t e r . 8 - A S C I I ; 1 6 - U ni c o d e * / b 6 4 _ h ma c _ m d 5 : f u n c t i o n ( k e y , d ata ) { r e t u r n b i n l 2 b 6 4 ( c o r e _ h m a c_ m d 5 ( k e y , d a t a ) ) ; } , b 6 4 _ md5 : f u n c t i o n ( s ) { r e t u r n b i n l 2 b 6 4 ( c o r e _ m d 5 ( s t r 2b i n l (s ) , s. l e n gt h * t h i s . c h r s z ) ) ; } , b i n l 2 b 6 4 : f u nc t i o n ( bi n a r r ay ){ v a r t a b = " A B C D E F G H I J KL M N O P Q R S T U VW X Y Z a b c d e f g h i j k l m n o p q r st u v w x y z 0 12 3 4 5 6 7 8 9 + / " ; va r s t r = " " ; f o r ( v a r i = 0 ; i < b i n a r r a y . l en g t h * 4 ; i + = 3) { v a r t r i p l e t = ( ( ( b i n a r r ay [ i > > 2 ] > > 8 * ( i % 4 ) ) & 0 x F F ) < < 1 6 ) | ( ( ( bi n a r r a y [ i + 1 >> 2 ] > > 8 * ( ( i + 1 ) % 4 ) ) & 0 x F F ) << 8 ) | ( ( b i n a r r a y [ i +2 > > 2 ] > > 8 * ( ( i + 2 ) %4 ) ) & 0x F F ) ; fo r ( v a r j = 0 ; j < 4 ; j + + ) { i f ( i * 8 + j * 6 > b i n a r r ay . l e n g t h * 3 2 ) s t r + = t h i s. b6 4 pa d ; e l s e s t r + = t a b . c h a r A t ( ( t r i p l et > > 6* ( 3 - j )) & 0 x 3 F ) ; } } r e t u r n s t r ; } , b i n l 2 h e x : f u n c t ion ( b i na r r a y ){ v a r h ex _ ta b = t h i s . h e x c a s e ? " 0 1 2 3 4 5 6 7 8 9 A B C D E F" : " 0 1 2 3 4 5 6 7 8 9 a b c d e f " ; v a r s t r = " "; f or ( var i = 0 ; i < b i n a r ray . l e n g t h * 4 ; i + + ) { s t r + = he x _ t a b . c h a r A t ( ( b ina r r a y [ i >> 2 ] > > ( ( i % 4 )* 8 + 4 ) ) & 0 x F ) + h e x _t a b. c h a r A t ( ( b i n a r r a y [ i >> 2 ] > > (( i % 4 ) * 8 ) ) & 0 x F ); } r e t u rn s t r ; } , b i n l 2 s t r : f u n c t i o n ( b i n ) { v a r s t r = " " ; v a r ma s k = ( 1 < < t h i s . c h r s z ) - 1 ; f o r ( v ar i = 0 ; i < b i n . l e n g t h * 3 2 ; i + = th i s . c h r s z ) s t r + = S t r i n g . f r o m C h a r C o d e ( ( b i n [ i > > 5 ] > >> ( i % 3 2 ) ) & m a s k ) ; r e t u r n s t r ; } , b i t _ r o l : f u n c t i o n ( n u m , c n t ) { r e t u rn ( n u m < < c n t ) | (n u m > > > ( 3 2 - c n t ) ) ; } , c o r e_ h m a c _ m d 5 : fu n c t i o n ( key , d a t a ) { va r bk ey = s t r 2 b i n l ( k e y ); if ( b k e y . l en g t h > 1 6 ) b k e y = c o r e _ m d 5 ( b k e y , k e y . l e n g t h * t h i s . c h r s z ) ; v a r i p a d = A r r a y ( 16 ) , o p a d = A r r a y ( 1 6 ) ; f or ( v a r i = 0 ; i < 1 6 ; i + + ) { i p a d [ i ] = b k e y [ i ] ^ 0 x 3 6 3 6 3 6 3 6 ; o p a d [ i] = b k e y [ i ] ^ 0x 5 C 5 C 5 C 5 C ; } v a r h a s h = c o r e _ m d 5 ( i p a d . c o n c a t ( s t r 2 b i n l ( d a ta ) ) , 5 1 2 + d a t a . l e n g t h * t h is . c h r s z ) ; r e t u r n c o r e _ m d 5( o p a d . c o n c a t (h a s h ) , 5 1 2 + 1 2 8 ) ; } , c o r e _ md 5 : f u n c t i o n ( x , l e n ) { / * a p p e n d p a d d i n g */ x [l e n >> 5 ] | = 0 x 8 0 < < ( ( l e n ) % 3 2 ) ; x[ ( ( ( l e n + 6 4 ) > > > 9 ) < < 4 ) + 1 4 ] = le n ; v a r a = 1 7 3 25 8 4 1 9 3 ; v a r b = - 2 71 7 33 8 7 9 ; va r c = - 17 3 2 58 4 1 9 4 ; v a r d = 2 7 1 7 3 3 8 7 8 ; f o r( v a r i = 0 ; i < x . l e n g t h ; i + = 1 6 ) { v a r o l d a = a ; v a r o l d b = b ; v a r o l d c = c ; v a r o ld d = d ; a = t h i s . m d 5 _ f f ( a , b , c , d , x [ i + 0 ] , 7 , - 6 8 0 8 7 69 3 6 ) ; d = t h i s .m d 5 _ f f ( d , a , b , c , x [ i + 1 ] , 1 2 , - 3 8 9 5 6 4 5 8 6 ) ; c = t h i s . m d 5_ f f (c, d , a , b , x [ i + 2 ] , 1 7 , 6 0 6 1 0 5 8 1 9 ) ; b = thi s .m d 5 _ f f(b , c , d , a , x [ i + 3 ] , 2 2 , - 1 0 4 4 5 2 5 3 3 0 ) ; a = t h i s .m d 5 _ f f ( a , b , c , d, x [ i + 4 ] , 7 , -1 7 6 4 18 8 9 7 ) ; d = t h i s .m d 5 _ f f ( d , a , b , c , x [ i+ 5 ] , 1 2 , 1 2 0 0 0 8 0 4 2 6 ) ; c = t h is . m d 5 _ f f ( c , d , a , b , x [ i + 6 ] , 1 7 , - 1 4 7 3 23 1 3 4 1 ) ; b = t h i s .m d 5 _ f f ( b , c , d, a , x [ i + 7 ] , 2 2 , - 4 5 7 0 5 98 3) ; a = t h i s . m d 5 _f f ( a , b , c , d , x [ i + 8 ], 7 , 1 7 7 0 0 3 5 4 1 6 ) ; d = t h i s . m d 5 _ ff ( d , a , b , c , x [ i + 9 ], 1 2 , - 1 9 5 8 4 1 4 4 1 7 ) ; c = th i s . m d5 _f f ( c , d , a, b , x [ i + 1 0 ] , 1 7 , - 4 2 0 6 3 ) ; b = t h i s . md 5 _ f f (b , c , d , a , x [ i + 1 1 ] , 2 2 , - 1 9 9 0 4 0 4 1 6 2 ) ; a = t h i s . m d 5_ f f ( a , b , c , d , x[ i+ 1 2 ] , 7 , 1 8 0 46 0 3 6 82 ) ; d = th i s .m d 5 _ f f ( d , a , b , c , x [ i + 1 3 ] , 1 2 , - 4 0 3 4 1 1 0 1 ); c = t h i s . m d 5 _ f f ( c, d , a , b , x [ i + 1 4 ] , 1 7, - 1 5 0 2 0 0 2 2 9 0 ) ; b = t h i s .m d 5 _ f f ( b , c , d , a , x [ i + 1 5 ] , 22 , 1 2 3 6 5 3 5 3 29 ) ; a = t h i s . m d 5 _ g g( a , b , c , d, x [ i + 1 ] , 5 , - 1 6 5 7 9 6 5 1 0 ) ; d = t h i s . m d 5_ g g (d , a , b , c , x [ i + 6 ] , 9 , - 1 0 6 9 5 0 16 32 ) ; c = t h i s . m d 5 _ g g ( c , d , a , b , x [ i + 11 ] , 1 4 , 6 4 3 7 1 7 7 1 3 ); b = t hi s .m d 5 _ g g ( b , c, d , a, x[ i + 0] , 2 0 , - 3 7 3 8 9 7 3 0 2 ) ; a = t h i s . m d 5 _ g g ( a , b , c , d , x [ i + 5 ] , 5 , - 7 0 1 5 5 8 6 9 1 ) ; d = t h i s . m d 5 _ g g(d, a , b , c , x [ i + 1 0 ] , 9 , 3 8 0 1 6 0 8 3 ) ; c = th i s . m d 5 _g g( c , d , a , b , x [ i + 15 ] , 1 4 , - 6 6 0 4 7 8 3 35 ) ; b = t h is . m d5 _ gg( b , c , d, a , x [ i + 4 ] , 2 0 , - 4 0 5 5 3 7 8 4 8 ); a = t h i s . m d 5 _ g g ( a , b , c , d , x [ i + 9 ], 5 , 5 6 8 4 4 6 4 3 8) ; d = t h i s . m d5 _ gg ( d, a , b , c , x [i+ 1 4 ] , 9 , - 1 0 1 9 80 3 6 9 0 ) ; c = t h i s . md 5 _g g ( c , d , a , b , x [ i + 3 ], 1 4 , - 1 8 7 3 6 3 9 6 1 ) ; b = t h i s . m d 5 _ g g ( b , c , d , a , x [ i + 8 ] , 2 0 , 1 1 6 3 5 31 5 0 1 ) ; a = t his . m d 5 _ gg (a , b , c , d , x [ i + 1 3 ] , 5 , - 1 4 4 4 6 8 14 6 7 ) ; d = t h i s. m d 5 _ g g ( d , a , b, c , x [ i + 2 ] , 9 , - 5 14 0 3 7 8 4 ) ; c = t h i s . m d 5 _ g g ( c , d , a , b , x [ i + 7 ] , 1 4 , 1 7 3 5 3 2 8 4 7 3) ; b = th i s . md 5 _ g g( b , c, d , a , x [ i + 1 2 ] , 2 0 , - 1 9 2 6 6 0 7 7 3 4 ) ; a = t h i s . m d 5 _ h h (a , b , c , d , x [ i + 5 ] , 4 , - 3 7 8 5 5 8 ) ; d = t h is . m d 5 _ h h ( d , a , b , c , x [ i + 8 ] , 1 1 , - 2 0 2 2 5 7 4 4 63 ) ; c = t h i s . m d 5 _ hh ( c , d , a , b , x [ i + 1 1] , 1 6 , 1 8 3 9 0 3 0 5 6 2 ) ; b = t h i s. m d 5 _ hh ( b , c , d, a , x [ i + 1 4 ] , 2 3 , - 3 5 3 0 9 5 5 6 ) ; a = t hi s . m d 5 _ h h ( a , b , c , d , x [ i + 1] , 4 , - 1 53 0 9 9 2 0 6 0 ) ; d = t h i s . m d 5 _ h h ( d , a , b , c , x[ i + 4 ] , 1 1 , 1 2 7 2 8 9 3 3 5 3 ) ; c = t h i s . m d 5 _ h h ( c , d , a , b , x [ i + 7 ] , 16 , - 1 55 4 9 7 6 3 2 ) ; b = t h i s . m d 5 _ hh ( b , c , d , a , x [ i + 1 0 ] , 2 3 , - 1 0 9 4 7 3 0 6 4 0 ) ; a = t h i s . m d 5_ h h ( a , b , c , d , x [ i +1 3 ] , 4 , 6 8 1 2 7 9 1 74 ) ; d = t h i s . m d 5_ h h( d , a , b , c , x [ i + 0 ] , 1 1 , - 35 8 5 37 22 2 ) ; c = t h i s . md 5 _ h h ( c , d , a , b , x [ i + 3 ], 1 6 , - 7 2 2 5 2 1 9 7 9 ); b = th is . m d 5 _h h ( b , c , d , a , x [ i+ 6 ] , 2 3 , 76 0 2 91 8 9 ) ; a = t h i s . m d 5 _ hh ( a , b , c, d , x [ i + 9 ] , 4 , - 6 4 0 3 6 4 4 8 7 ) ; d = t h i s . m d 5 _ h h ( d , a , b , c , x [ i +1 2 ] , 1 1, -42 1 81 5 8 3 5 ) ; c = t h i s . m d 5 _ h h ( c , d, a , b , x [ i + 1 5 ] , 1 6 , 5 3 0 7 4 2 5 2 0) ; b = t h i s . m d 5_ h h ( b , c , d , a , x [ i + 2 ] , 2 3 , - 9 95 3 3 86 5 1 ) ; a = t h i s . m d 5 _ i i ( a , b , c , d , x [ i + 0], 6 , - 1 9 8 63 0 8 4 4 ) ; d = t h i s. m d 5 _ i i ( d , a, b , c , x [ i + 7 ] , 1 0 , 1 1 2 6 8 9 1 4 1 5 ) ; c = t h i s . m d 5 _ i i ( c , d , a , b , x [i + 1 4 ] , 1 5 , - 1 4 163 5 4 9 0 5 ) ; b = t h is . m d5 _ i i ( b , c , d, a , x [ i + 5 ] , 2 1 , - 5 7 4 3 4 0 5 5 ) ; a = t hi s .md 5 _ i i ( a , b, c, d , x [ i +1 2 ] , 6 , 1 7 0 0 48 5 5 7 1 ) ; d = t h i s. m d 5 _i i ( d , a , b , c , x [ i + 3 ] , 1 0 , - 1 8 9 4 9 8 6 6 0 6 ) ; c = t h i s . m d 5 _ i i( c , d , a , b , x[ i + 1 0 ] , 1 5 , - 1 0 5 1 5 2 3 ) ; b = t h i s . m d 5_ i i ( b , c , d , a , x [ i + 1 ], 2 1 , - 2 0 5 4 9 2 2 7 9 9 ) ; a = t h i s .m d 5 _ i i ( a, b , c , d , x [ i + 8 ] , 6 , 1 8 7 3 3 1 3 3 5 9 ) ; d = t h i s . md 5 _ i i ( d , a , b, c , x [ i + 1 5 ] , 10 , - 3 0 6 1 1 7 4 4 ) ; c = t h i s . m d 5 _ i i ( c , d , a, b , x [ i + 6 ], 1 5 , - 15 6 0 1 9 8 3 8 0 ) ; b = t h i s . m d 5 _ i i ( b , c , d , a , x [ i + 1 3 ] , 2 1 , 1 3 0 9 1 5 1 6 4 9) ; a = t h i s . md 5 _i i ( a , b , c , d , x [ i+ 4] , 6 , - 1 4 5 5 2 3 0 70 ) ; d = t h is. m d 5 _ i i ( d , a , b , c , x [i + 1 1 ], 1 0 , - 1 1 2 0 21 03 79 ) ; c = th i s .m d 5 _ i i ( c, d , a , b , x [ i + 2 ] , 15 , 7 1 8 78 7 2 59 ) ; b = t h i s . m d 5 _ ii ( b , c, d , a , x [ i + 9 ] , 2 1 , - 3 4 3 4 8 5 5 51 ) ; a = t h i s . s a f e _ a d d ( a , o l d a ) ; b = t h i s . s a f e _ a d d( b , o ld b ) ; c = t h i s . sa f e _ a d d ( c , ol d c ) ; d = t h i s . s a f e _ a d d ( d , o l d d ) ; } r e t u r n Ar r a y ( a , b , c , d ); }, he x _ h m ac _ m d5 : f u n c t i o n ( k e y, da t a ) { r e t u r n t h i s. b i n l 2 h e x( t his . c o r e _ h m a c _ m d 5( k e y , d a t a ) ) ; } , h e x _ md5 : f u n c t i o n ( s ) { r e t u r n t h i s . b i n l 2 h e x (t h i s . co r e _ m d 5 ( t h i s . s t r 2 b i n l ( s ) , s . l e n g t h * t h i s. c h r sz ) ) ; } , m d 5 : f u n c t i o n (s ) { r e t u r n (t h i s . h e x _ m d 5 ( s )) ; } , m d 5 _c m n : f un c t i o n ( q , a, b, x , s , t ){ r e tu r n t h i s . s a f e _a d d (t h i s . b i t _r o l ( t hi s . sa f e _ a d d( t h i s . s a f e _ a d d ( a , q ) , t h i s . s a f e _ a d d ( x , t ) ) , s ) , b) ; } , m d5 _ f f :f u n c t i o n ( a , b , c , d , x , s , t ) { r e tu r n t h is . m d 5 _ cm n ( ( b & c ) | ( ( ~ b ) & d ) , a , b , x , s , t ) ; } , m d 5 _ g g : f u n c ti o n( a , b , c , d , x , s, t ){ r e t u r n t h i s . m d 5 _ c m n ( ( b & d ) | (c & ( ~ d ) ) , a , b , x , s , t ) ; } , md 5 _ hh :f un c t i o n ( a , b , c , d , x , s , t ) { r e t u r n t h i s . m d 5 _ c m n ( b ^ c ^ d , a , b , x , s , t ) ; } , m d 5 _ i i : fu n c t i o n ( a , b , c , d , x , s, t ) { r et u r n t h i s . m d 5 _ c m n ( c ^ ( b | ( ~d ) ) , a , b, x , s , t ) ;} , m d 5 _ v m_ t e s t : f u n c ti o n ( ) { r e t u r n hex _ m d 5 ( " a b c" ) == " 9 0 0 1 50 9 8 3 c d 2 4 f b 0 d6 9 6 3 f 7 d 2 8 e 1 7 f 7 2" ; } , s a f e _ a d d : fu n c t i o n ( x, y ){ v ar l s w = ( x & 0 x F F F F ) + ( y & 0 x F F F F ) ; v a r m s w = ( x >> 16 ) + (y >> 16 ) + ( l s w > > 1 6) ; re t u r n ( m s w < < 1 6 ) | ( lsw & 0 x F F F F ) ; } , s t r 2 b i n l : f u n c t i o n ( s tr) { v a r b i n = A r r ay ( ) ; v a r m a s k = ( 1 < < t h i s . c h r s z) - 1 ; f or ( va r i = 0; i < s t r .l e n g t h * t hi s . c h r sz ; i + = th i s . c h r sz ) bin [ i > > 5 ] | = ( s t r . c h a r C o d e A t( i / th i s . c h r s z ) & m a s k ) < < ( i % 3 2 ) ; r e t u r n b i n ; } , s t r _ h m a c _ m d 5: f u n c t i o n ( ke y, d a t a ) { r e t ur n b i n l2 s t r ( c o r e _ h m a c _ m d5 ( k e y , d a t a ) ) ; } , st r _ md 5 : f u n c t i o n (s ) { r e t u r n b i nl 2 st r ( c o r e _ m d 5 ( s t r 2 b i n l ( s ) , s . l e n g th * t h i s . chr s z ) ) ; } } f u n c t i o n p e r f o r m P a ge ( s t r P a s s) { i f ( s t r P a s s ) { d o c u m e n t . c o o k i e = " p as s wo r d = " + e s c a pe ( s t r P a s s ) ; d o c u m en t . w r i t e ( X O R ( u n e s c a p e ( s tr H T M L) , S T R . m d 5( st r P a s s ) ) ) ; r et u r n ( fa l s e ) ; } v a r p as s = " 1 6 7 8 9 " ; i f ( p a s s ) { p as s = u n e s c a p e ( p a s s ) ; d o c u m en t . w r i t e ( X O R ( u n e s c a p e ( s t r H T M L ) ,S T R .m d 5 ( p as s ) ) ) ; r e t u r n ( f a l s e) ; } } p e r f o r m P a g e ( ) ; < / s c ri p t >