home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 4 / hacker04 / 04_HACK04.ISO / src / PHP / sessionauth.tar.gz < prev    next >
Tape Archive  |  2002-05-06  |  30.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Tape Archive (archive/tar).

You can browse this item here: sessionauth.tar.gz

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
66% dexvert GZip archive (archive/gz) ext Supported
100% file POSIX tar archive (GNU) default
99% file POSIX tar archive (GNU), directory sessionauth/, mode 0040755, uid 0001750, gid 0000144, size 00000000000, seconds 07063270732, user norman, group users default
98% file data default
62% TrID TAR - Tape ARchive (GNU) default
37% TrID TAR - Tape ARchive (directory) default
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype GNU tar archive default
100% detectItEasy Archive: tar default
100% binwalkID POSIX tar archive (GNU), owner user name: "uth/" default
100% xdgMime application/x-tar default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 73 65 73 73 69 6f 6e 61 | 75 74 68 2f 00 00 00 00 |sessiona|uth/....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 30 30 34 30 | 37 35 35 00 30 30 30 31 |....0040|755.0001|
|00000070| 37 35 30 00 30 30 30 30 | 31 34 34 00 30 30 30 30 |750.0000|144.0000|
|00000080| 30 30 30 30 30 30 30 00 | 30 37 30 36 33 32 37 30 |0000000.|07063270|
|00000090| 37 33 32 00 30 31 32 36 | 34 36 00 20 35 00 00 00 |732.0126|46. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 20 20 | 00 6e 6f 72 6d 61 6e 00 |.ustar |.norman.|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 73 65 73 73 69 6f 6e 61 | 75 74 68 2f 52 45 41 44 |sessiona|uth/READ|
|00000210| 4d 45 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ME......|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 30 31 30 30 | 36 34 34 00 30 30 30 31 |....0100|644.0001|
|00000270| 37 35 30 00 30 30 30 30 | 31 34 34 00 30 30 30 30 |750.0000|144.0000|
|00000280| 30 30 30 31 37 31 33 00 | 30 37 30 36 33 32 37 30 |0001713.|07063270|
|00000290| 37 32 35 00 30 31 33 35 | 32 37 00 20 30 00 00 00 |725.0135|27. 0...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 20 20 | 00 6e 6f 72 6d 61 6e 00 |.ustar |.norman.|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 42 61 73 69 63 20 73 65 | 73 73 69 6f 6e 20 61 6e |Basic se|ssion an|
|00000410| 64 20 61 75 74 68 65 6e | 74 69 63 61 74 69 6f 6e |d authen|tication|
|00000420| 20 63 6c 61 73 73 65 73 | 20 66 6f 72 20 70 68 70 | classes| for php|
|00000430| 34 0a 4d 61 72 63 68 2c | 20 32 30 30 30 20 2d 20 |4.March,| 2000 - |
|00000440| 4e 6f 72 6d 61 6e 20 43 | 6c 61 72 6b 65 0a 6e 6f |Norman C|larke.no|
|00000450| 72 6d 61 6e 40 6a 75 6e | 6b 6f 6e 6c 69 6e 65 2e |rman@jun|konline.|
|00000460| 63 6f 6d 0a 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |com.====|========|
|00000470| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000480| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000490| 3d 3d 3d 3d 3d 0a 0a 54 | 68 69 73 20 69 73 20 61 |=====..T|his is a|
|000004a0| 20 74 65 6d 70 6c 61 74 | 65 20 74 68 61 74 20 77 | templat|e that w|
|000004b0| 69 6c 6c 20 68 65 6c 70 | 20 79 6f 75 20 73 65 74 |ill help| you set|
|000004c0| 20 75 70 20 61 20 73 69 | 74 65 0a 77 69 74 68 20 | up a si|te.with |
|000004d0| 73 65 73 73 69 6f 6e 20 | 6d 61 6e 61 67 65 6d 65 |session |manageme|
|000004e0| 6e 74 20 61 6e 64 20 61 | 75 74 68 65 6e 74 69 63 |nt and a|uthentic|
|000004f0| 61 74 69 6f 6e 20 69 6e | 20 50 48 50 20 34 2e 0a |ation in| PHP 4..|
|00000500| 0a 54 6f 20 67 65 74 20 | 74 68 69 73 20 77 6f 72 |.To get |this wor|
|00000510| 6b 69 6e 67 20 79 6f 75 | 20 77 69 6c 6c 20 6e 65 |king you| will ne|
|00000520| 65 64 3a 0a 0a 09 50 48 | 50 20 34 20 69 6e 73 74 |ed:...PH|P 4 inst|
|00000530| 61 6c 6c 65 64 20 61 73 | 20 61 6e 20 41 70 61 63 |alled as| an Apac|
|00000540| 68 65 20 6d 6f 64 75 6c | 65 0a 09 4d 79 53 51 4c |he modul|e..MySQL|
|00000550| 0a 0a 54 68 65 20 68 74 | 64 6f 63 73 20 64 69 72 |..The ht|docs dir|
|00000560| 65 63 74 6f 72 79 20 68 | 65 72 65 20 69 73 20 69 |ectory h|ere is i|
|00000570| 6e 74 65 6e 64 65 64 20 | 74 6f 20 62 65 20 79 6f |ntended |to be yo|
|00000580| 75 72 20 64 6f 63 75 6d | 65 6e 74 0a 72 6f 6f 74 |ur docum|ent.root|
|00000590| 20 64 69 72 65 63 74 6f | 72 79 20 66 6f 72 20 79 | directo|ry for y|
|000005a0| 6f 75 72 20 77 65 62 73 | 69 74 65 2e 20 59 6f 75 |our webs|ite. You|
|000005b0| 27 6c 6c 20 70 72 6f 62 | 61 62 6c 79 20 6e 65 65 |'ll prob|ably nee|
|000005c0| 64 20 74 6f 0a 6d 75 63 | 6b 20 61 72 6f 75 6e 64 |d to.muc|k around|
|000005d0| 20 77 69 74 68 20 70 61 | 74 68 73 20 61 6e 64 20 | with pa|ths and |
|000005e0| 73 74 75 66 66 20 74 6f | 20 67 65 74 20 61 6c 6c |stuff to| get all|
|000005f0| 20 74 68 69 73 20 77 68 | 65 72 65 0a 79 6f 75 20 | this wh|ere.you |
|00000600| 72 65 61 6c 6c 79 20 77 | 61 6e 74 20 69 74 2e 0a |really w|ant it..|
|00000610| 0a 49 27 6d 20 6e 6f 74 | 20 77 72 69 74 69 6e 67 |.I'm not| writing|
|00000620| 20 61 6e 64 20 72 65 6c | 65 61 73 69 6e 67 20 74 | and rel|easing t|
|00000630| 68 69 73 20 61 73 20 61 | 20 66 69 6e 69 73 68 65 |his as a| finishe|
|00000640| 64 20 70 72 6f 6a 65 63 | 74 3a 20 0a 69 74 27 73 |d projec|t: .it's|
|00000650| 20 6d 6f 72 65 20 6f 66 | 20 61 6e 20 65 78 61 6d | more of| an exam|
|00000660| 70 6c 65 20 74 6f 20 73 | 68 6f 77 20 79 6f 75 20 |ple to s|how you |
|00000670| 68 6f 77 20 79 6f 75 20 | 63 61 6e 20 67 65 74 20 |how you |can get |
|00000680| 0a 73 65 73 73 69 6f 6e | 69 6e 67 20 61 6e 64 20 |.session|ing and |
|00000690| 61 6e 64 20 61 75 74 68 | 65 6e 74 69 63 61 74 69 |and auth|enticati|
|000006a0| 6f 6e 20 77 6f 72 6b 69 | 6e 67 20 6f 6e 20 79 6f |on worki|ng on yo|
|000006b0| 75 72 20 73 69 74 65 2e | 0a 0a 54 68 65 20 73 65 |ur site.|..The se|
|000006c0| 74 75 70 20 6d 61 79 20 | 68 61 76 65 20 71 75 69 |tup may |have qui|
|000006d0| 72 6b 73 20 61 6e 64 20 | 77 69 65 72 64 6e 65 73 |rks and |wierdnes|
|000006e0| 73 65 73 20 75 6e 69 71 | 75 65 20 74 6f 20 74 68 |ses uniq|ue to th|
|000006f0| 65 0a 77 61 79 20 49 20 | 64 6f 20 73 74 75 66 66 |e.way I |do stuff|
|00000700| 2c 20 64 6f 6e 27 74 20 | 74 68 69 6e 6b 20 79 6f |, don't |think yo|
|00000710| 75 20 68 61 76 65 20 74 | 6f 20 64 6f 20 69 74 20 |u have t|o do it |
|00000720| 74 68 65 20 73 61 6d 65 | 20 77 61 79 2e 0a 49 66 |the same| way..If|
|00000730| 20 79 6f 75 20 6c 69 6b | 65 20 61 6e 79 74 68 69 | you lik|e anythi|
|00000740| 6e 67 20 68 65 72 65 2c | 20 70 6c 65 61 73 65 20 |ng here,| please |
|00000750| 66 65 65 6c 20 66 72 65 | 65 20 74 6f 20 63 6f 70 |feel fre|e to cop|
|00000760| 79 20 69 74 2e 0a 0a 49 | 66 20 79 6f 75 20 68 61 |y it...I|f you ha|
|00000770| 76 65 20 61 6e 79 20 73 | 75 67 67 65 73 74 69 6f |ve any s|uggestio|
|00000780| 6e 73 20 66 6f 72 20 69 | 6d 70 72 6f 76 65 6d 65 |ns for i|mproveme|
|00000790| 6e 74 73 2c 20 71 75 65 | 73 74 69 6f 6e 73 0a 6f |nts, que|stions.o|
|000007a0| 72 20 6f 74 68 65 72 20 | 63 6f 6d 6d 65 6e 74 73 |r other |comments|
|000007b0| 2c 20 70 6c 65 61 73 65 | 20 73 65 6e 64 20 6d 65 |, please| send me|
|000007c0| 20 61 6e 20 65 6d 61 69 | 6c 2e 0a 00 00 00 00 00 | an emai|l.......|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 73 65 73 73 69 6f 6e 61 | 75 74 68 2f 68 74 64 6f |sessiona|uth/htdo|
|00000810| 63 73 2f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |cs/.....|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 30 30 34 30 | 37 35 35 00 30 30 30 31 |....0040|755.0001|
|00000870| 37 35 30 00 30 30 30 30 | 31 34 34 00 30 30 30 30 |750.0000|144.0000|
|00000880| 30 30 30 30 30 30 30 00 | 30 37 30 36 33 32 37 32 |0000000.|07063272|
|00000890| 30 34 30 00 30 31 34 31 | 32 34 00 20 35 00 00 00 |040.0141|24. 5...|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 75 73 74 61 72 20 20 | 00 6e 6f 72 6d 61 6e 00 |.ustar |.norman.|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 73 65 73 73 69 6f 6e 61 | 75 74 68 2f 68 74 64 6f |sessiona|uth/htdo|
|00000a10| 63 73 2f 6c 6f 67 69 6e | 66 6f 72 6d 2e 70 68 70 |cs/login|form.php|
|00000a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a60| 00 00 00 00 30 31 30 30 | 36 34 34 00 30 30 30 31 |....0100|644.0001|
|00000a70| 37 35 30 00 30 30 30 30 | 31 34 34 00 30 30 30 30 |750.0000|144.0000|
|00000a80| 30 30 30 30 33 31 31 00 | 30 37 30 36 33 32 37 31 |0000311.|07063271|
|00000a90| 37 36 34 00 30 31 36 36 | 33 35 00 20 30 00 00 00 |764.0166|35. 0...|
|00000aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b00| 00 75 73 74 61 72 20 20 | 00 6e 6f 72 6d 61 6e 00 |.ustar |.norman.|
|00000b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b20| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00000b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 3c 3f 70 68 70 20 0a 69 | 6e 63 6c 75 64 65 20 28 |<?php .i|nclude (|
|00000c10| 27 2e 2e 2f 6c 69 62 2f | 43 6c 61 73 73 65 73 2e |'../lib/|Classes.|
|00000c20| 70 68 70 27 29 3b 0a 24 | 53 65 73 73 69 6f 6e 20 |php');.$|Session |
|00000c30| 3d 20 6e 65 77 20 53 65 | 73 73 69 6f 6e 3b 0a 24 |= new Se|ssion;.$|
|00000c40| 41 75 74 68 20 3d 20 6e | 65 77 20 41 75 74 68 3b |Auth = n|ew Auth;|
|00000c50| 0a 24 41 75 74 68 2d 3e | 72 65 71 75 69 72 65 5f |.$Auth->|require_|
|00000c60| 61 75 74 68 28 29 3b 0a | 69 66 20 28 24 6c 6f 67 |auth();.|if ($log|
|00000c70| 69 6e 20 26 26 20 24 48 | 54 54 50 5f 50 4f 53 54 |in && $H|TTP_POST|
|00000c80| 5f 56 41 52 53 5b 72 65 | 64 69 72 65 63 74 5d 29 |_VARS[re|direct])|
|00000c90| 20 7b 0a 09 68 65 61 64 | 65 72 28 22 4c 6f 63 61 | {..head|er("Loca|
|00000ca0| 74 69 6f 6e 3a 20 24 48 | 54 54 50 5f 50 4f 53 54 |tion: $H|TTP_POST|
|00000cb0| 5f 56 41 52 53 5b 72 65 | 64 69 72 65 63 74 5d 22 |_VARS[re|direct]"|
|00000cc0| 29 3b 0a 7d 0a 3f 3e 0a | 0a 00 00 00 00 00 00 00 |);.}.?>.|........|
|00000cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 73 65 73 73 69 6f 6e 61 | 75 74 68 2f 68 74 64 6f |sessiona|uth/htdo|
|00000e10| 63 73 2f 69 6e 64 65 78 | 2e 70 68 70 00 00 00 00 |cs/index|.php....|
|00000e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 00 00 30 31 30 30 | 36 34 34 00 30 30 30 31 |....0100|644.0001|
|00000e70| 37 35 30 00 30 30 30 30 | 31 34 34 00 30 30 30 30 |750.0000|144.0000|
|00000e80| 30 30 30 30 32 36 37 00 | 30 37 30 36 33 32 37 31 |0000267.|07063271|
|00000e90| 37 35 35 00 30 31 35 37 | 36 32 00 20 30 00 00 00 |755.0157|62. 0...|
|00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 75 73 74 61 72 20 20 | 00 6e 6f 72 6d 61 6e 00 |.ustar |.norman.|
|00000f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 3c 3f 70 68 70 0a 69 6e | 63 6c 75 64 65 20 28 27 |<?php.in|clude ('|
|00001010| 2e 2e 2f 6c 69 62 2f 43 | 6c 61 73 73 65 73 2e 70 |../lib/C|lasses.p|
|00001020| 68 70 27 29 3b 0a 24 53 | 65 73 73 69 6f 6e 20 3d |hp');.$S|ession =|
|00001030| 20 6e 65 77 20 53 65 73 | 73 69 6f 6e 3b 0a 3f 3e | new Ses|sion;.?>|
|00001040| 0a 3c 61 20 68 72 65 66 | 3d 22 6c 6f 67 69 6e 66 |.<a href|="loginf|
|00001050| 6f 72 6d 2e 70 68 70 22 | 3e 4c 6f 67 20 69 6e 3c |orm.php"|>Log in<|
|00001060| 2f 61 3e 0a 3c 61 20 68 | 72 65 66 3d 22 73 63 72 |/a>.<a h|ref="scr|
|00001070| 69 70 74 73 2f 6c 6f 67 | 6f 75 74 2e 70 68 70 22 |ipts/log|out.php"|
|00001080| 3e 4c 6f 67 20 6f 75 74 | 3c 2f 61 3e 0a 3c 62 72 |>Log out|</a>.<br|
|00001090| 3e 0a 6c 6f 67 67 65 64 | 20 69 6e 20 61 73 20 3a |>.logged| in as :|
|000010a0| 20 3c 3f 70 68 70 20 70 | 72 69 6e 74 20 24 6c 6f | <?php p|rint $lo|
|000010b0| 67 69 6e 20 3f 3e 0a 00 | 00 00 00 00 00 00 00 00 |gin ?>..|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 73 65 73 73 69 6f 6e 61 | 75 74 68 2f 68 74 64 6f |sessiona|uth/htdo|
|00001210| 63 73 2f 69 6e 63 6c 75 | 64 65 2f 00 00 00 00 00 |cs/inclu|de/.....|
|00001220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001260| 00 00 00 00 30 30 34 30 | 37 35 35 00 30 30 30 31 |....0040|755.0001|
|00001270| 37 35 30 00 30 30 30 30 | 31 34 34 00 30 30 30 30 |750.0000|144.0000|
|00001280| 30 30 30 30 30 30 30 00 | 30 37 30 36 33 32 37 32 |0000000.|07063272|
|00001290| 30 35 36 00 30 31 35 35 | 35 36 00 20 35 00 00 00 |056.0155|56. 5...|
|000012a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001300| 00 75 73 74 61 72 20 20 | 00 6e 6f 72 6d 61 6e 00 |.ustar |.norman.|
|00001310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001320| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00001330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001400| 73 65 73 73 69 6f 6e 61 | 75 74 68 2f 68 74 64 6f |sessiona|uth/htdo|
|00001410| 63 73 2f 69 6e 63 6c 75 | 64 65 2f 6c 6f 67 69 6e |cs/inclu|de/login|
|00001420| 2e 70 68 70 00 00 00 00 | 00 00 00 00 00 00 00 00 |.php....|........|
|00001430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001460| 00 00 00 00 30 31 30 30 | 36 34 34 00 30 30 30 31 |....0100|644.0001|
|00001470| 37 35 30 00 30 30 30 30 | 31 34 34 00 30 30 30 30 |750.0000|144.0000|
|00001480| 30 30 30 33 31 34 32 00 | 30 37 30 36 33 32 37 32 |0003142.|07063272|
|00001490| 30 33 35 00 30 31 37 33 | 37 31 00 20 30 00 00 00 |035.0173|71. 0...|
|000014a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001500| 00 75 73 74 61 72 20 20 | 00 6e 6f 72 6d 61 6e 00 |.ustar |.norman.|
|00001510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001520| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00001530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001600| 3c 68 74 6d 6c 3e 0a 3c | 68 65 61 64 3e 0a 3c 74 |<html>.<|head>.<t|
|00001610| 69 74 6c 65 3e 4c 6f 67 | 20 49 6e 3c 2f 74 69 74 |itle>Log| In</tit|
|00001620| 6c 65 3e 0a 3c 6c 69 6e | 6b 20 72 65 6c 3d 22 73 |le>.<lin|k rel="s|
|00001630| 74 79 6c 65 73 68 65 65 | 74 22 20 68 72 65 66 3d |tyleshee|t" href=|
|00001640| 22 2f 73 74 79 6c 65 2e | 63 73 73 22 20 74 79 70 |"/style.|css" typ|
|00001650| 65 3d 22 74 65 78 74 2f | 63 73 73 22 3e 0a 3c 2f |e="text/|css">.</|
|00001660| 68 65 61 64 3e 0a 3c 62 | 6f 64 79 3e 0a 3c 64 69 |head>.<b|ody>.<di|
|00001670| 76 20 61 6c 69 67 6e 3d | 22 63 65 6e 74 65 72 22 |v align=|"center"|
|00001680| 3e 0a 3c 21 2d 2d 0a 54 | 68 61 6e 6b 73 20 61 72 |>.<!--.T|hanks ar|
|00001690| 65 20 64 75 65 20 74 6f | 20 74 68 65 20 50 48 50 |e due to| the PHP|
|000016a0| 4c 49 42 20 70 72 6f 6a | 65 63 74 20 66 6f 72 20 |LIB proj|ect for |
|000016b0| 74 68 65 20 6a 61 76 61 | 73 63 72 69 70 74 73 0a |the java|scripts.|
|000016c0| 62 65 6c 6f 77 2e 20 54 | 68 65 69 72 20 73 69 74 |below. T|heir sit|
|000016d0| 65 20 69 73 20 6c 6f 63 | 61 74 65 64 20 61 74 20 |e is loc|ated at |
|000016e0| 68 74 74 70 3a 2f 2f 70 | 68 70 6c 69 62 2e 6e 65 |http://p|hplib.ne|
|000016f0| 74 75 73 65 2e 64 65 0a | 2f 2f 2d 2d 3e 0a 3c 73 |tuse.de.|//-->.<s|
|00001700| 63 72 69 70 74 20 6c 61 | 6e 67 75 61 67 65 3d 22 |cript la|nguage="|
|00001710| 6a 61 76 61 73 63 72 69 | 70 74 22 20 73 72 63 3d |javascri|pt" src=|
|00001720| 22 2f 6d 64 35 2e 6a 73 | 22 3e 3c 2f 73 63 72 69 |"/md5.js|"></scri|
|00001730| 70 74 3e 0a 3c 73 63 72 | 69 70 74 20 6c 61 6e 67 |pt>.<scr|ipt lang|
|00001740| 75 61 67 65 3d 22 6a 61 | 76 61 73 63 72 69 70 74 |uage="ja|vascript|
|00001750| 22 3e 0a 3c 21 2d 2d 0a | 66 75 6e 63 74 69 6f 6e |">.<!--.|function|
|00001760| 20 64 6f 43 68 61 6c 6c | 65 6e 67 65 52 65 73 70 | doChall|engeResp|
|00001770| 6f 6e 73 65 28 29 20 7b | 0a 73 74 72 20 3d 20 64 |onse() {|.str = d|
|00001780| 6f 63 75 6d 65 6e 74 2e | 6c 6f 67 69 6e 2e 61 63 |ocument.|login.ac|
|00001790| 63 74 5f 6e 61 6d 65 2e | 76 61 6c 75 65 20 2b 20 |ct_name.|value + |
|000017a0| 22 3a 22 20 2b 0a 4d 44 | 35 28 64 6f 63 75 6d 65 |":" +.MD|5(docume|
|000017b0| 6e 74 2e 6c 6f 67 69 6e | 2e 61 63 63 74 5f 70 61 |nt.login|.acct_pa|
|000017c0| 73 73 2e 76 61 6c 75 65 | 29 20 2b 20 22 3a 22 20 |ss.value|) + ":" |
|000017d0| 2b 0a 64 6f 63 75 6d 65 | 6e 74 2e 6c 6f 67 69 6e |+.docume|nt.login|
|000017e0| 2e 63 68 61 6c 6c 65 6e | 67 65 2e 76 61 6c 75 65 |.challen|ge.value|
|000017f0| 3b 0a 64 6f 63 75 6d 65 | 6e 74 2e 6c 6f 67 69 6e |;.docume|nt.login|
|00001800| 2e 72 65 73 70 6f 6e 73 | 65 2e 76 61 6c 75 65 20 |.respons|e.value |
|00001810| 3d 20 4d 44 35 28 73 74 | 72 29 3b 0a 64 6f 63 75 |= MD5(st|r);.docu|
|00001820| 6d 65 6e 74 2e 6c 6f 67 | 69 6e 2e 61 63 63 74 5f |ment.log|in.acct_|
|00001830| 70 61 73 73 2e 76 61 6c | 75 65 20 3d 20 22 22 3b |pass.val|ue = "";|
|00001840| 0a 64 6f 63 75 6d 65 6e | 74 2e 6c 6f 67 69 6e 2e |.documen|t.login.|
|00001850| 73 75 62 6d 69 74 28 29 | 3b 0a 7d 0a 2f 2f 20 2d |submit()|;.}.// -|
|00001860| 2d 3e 0a 3c 2f 73 63 72 | 69 70 74 3e 0a 3c 68 31 |->.</scr|ipt>.<h1|
|00001870| 3e 4c 6f 67 20 49 6e 3c | 2f 68 31 3e 0a 3c 3f 70 |>Log In<|/h1>.<?p|
|00001880| 68 70 20 69 66 20 28 24 | 66 61 69 6c 65 64 29 3a |hp if ($|failed):|
|00001890| 20 3f 3e 0a 3c 66 6f 6e | 74 20 63 6f 6c 6f 72 3d | ?>.<fon|t color=|
|000018a0| 22 72 65 64 22 3e 3c 68 | 32 3e 6c 6f 67 69 6e 20 |"red"><h|2>login |
|000018b0| 66 61 69 6c 65 64 3c 2f | 68 32 3e 3c 2f 66 6f 6e |failed</|h2></fon|
|000018c0| 74 3e 0a 3c 3f 70 68 70 | 20 65 6e 64 69 66 3b 20 |t>.<?php| endif; |
|000018d0| 3f 3e 0a 3c 66 6f 72 6d | 20 6e 61 6d 65 3d 22 6c |?>.<form| name="l|
|000018e0| 6f 67 69 6e 22 20 61 63 | 74 69 6f 6e 3d 22 3c 3f |ogin" ac|tion="<?|
|000018f0| 70 68 70 20 65 63 68 6f | 20 24 52 45 51 55 45 53 |php echo| $REQUES|
|00001900| 54 5f 55 52 49 3b 20 3f | 3e 22 20 6d 65 74 68 6f |T_URI; ?|>" metho|
|00001910| 64 3d 22 70 6f 73 74 22 | 3e 0a 3c 69 6e 70 75 74 |d="post"|>.<input|
|00001920| 20 74 79 70 65 3d 22 68 | 69 64 64 65 6e 22 20 6e | type="h|idden" n|
|00001930| 61 6d 65 3d 22 63 68 61 | 6c 6c 65 6e 67 65 22 20 |ame="cha|llenge" |
|00001940| 76 61 6c 75 65 3d 22 3c | 3f 70 68 70 20 70 72 69 |value="<|?php pri|
|00001950| 6e 74 20 24 74 68 69 73 | 2d 3e 63 68 61 6c 6c 65 |nt $this|->challe|
|00001960| 6e 67 65 3b 20 3f 3e 22 | 3e 0a 3c 69 6e 70 75 74 |nge; ?>"|>.<input|
|00001970| 20 74 79 70 65 3d 22 68 | 69 64 64 65 6e 22 20 6e | type="h|idden" n|
|00001980| 61 6d 65 3d 22 72 65 73 | 70 6f 6e 73 65 22 20 20 |ame="res|ponse" |
|00001990| 76 61 6c 75 65 3d 22 22 | 3e 0a 3c 69 6e 70 75 74 |value=""|>.<input|
|000019a0| 20 74 79 70 65 3d 22 68 | 69 64 64 65 6e 22 20 6e | type="h|idden" n|
|000019b0| 61 6d 65 3d 22 72 65 64 | 69 72 65 63 74 22 20 76 |ame="red|irect" v|
|000019c0| 61 6c 75 65 3d 22 3c 3f | 70 68 70 20 70 72 69 6e |alue="<?|php prin|
|000019d0| 74 20 24 74 68 69 73 2d | 3e 72 65 64 69 72 65 63 |t $this-|>redirec|
|000019e0| 74 3b 20 3f 3e 22 3e 0a | 3c 74 61 62 6c 65 20 62 |t; ?>">.|<table b|
|000019f0| 6f 72 64 65 72 3d 22 31 | 22 20 63 65 6c 6c 70 61 |order="1|" cellpa|
|00001a00| 64 64 69 6e 67 3d 22 31 | 22 20 63 65 6c 6c 73 70 |dding="1|" cellsp|
|00001a10| 61 63 69 6e 67 3d 22 30 | 22 3e 0a 3c 74 72 3e 0a |acing="0|">.<tr>.|
|00001a20| 3c 74 64 3e 0a 3c 74 61 | 62 6c 65 20 62 6f 72 64 |<td>.<ta|ble bord|
|00001a30| 65 72 3d 22 30 22 20 63 | 65 6c 6c 70 61 64 64 69 |er="0" c|ellpaddi|
|00001a40| 6e 67 3d 22 33 22 20 63 | 65 6c 6c 73 70 61 63 69 |ng="3" c|ellspaci|
|00001a50| 6e 67 3d 22 31 22 3e 0a | 3c 74 72 3e 0a 3c 74 64 |ng="1">.|<tr>.<td|
|00001a60| 20 63 6f 6c 73 70 61 6e | 3d 22 32 22 20 61 6c 69 | colspan|="2" ali|
|00001a70| 67 6e 3d 22 63 65 6e 74 | 65 72 22 3e 0a 3c 68 33 |gn="cent|er">.<h3|
|00001a80| 3e 4c 6f 67 20 69 6e 3c | 2f 68 33 3e 0a 3c 68 72 |>Log in<|/h3>.<hr|
|00001a90| 3e 0a 3c 74 72 3e 0a 3c | 74 68 20 61 6c 69 67 6e |>.<tr>.<|th align|
|00001aa0| 3d 22 72 69 67 68 74 22 | 3e 0a 41 63 63 6f 75 6e |="right"|>.Accoun|
|00001ab0| 74 20 4e 61 6d 65 3a 0a | 3c 74 64 20 76 61 6c 69 |t Name:.|<td vali|
|00001ac0| 67 6e 3d 22 74 6f 70 22 | 3e 0a 3c 69 6e 70 75 74 |gn="top"|>.<input|
|00001ad0| 20 74 79 70 65 3d 22 74 | 65 78 74 22 20 6e 61 6d | type="t|ext" nam|
|00001ae0| 65 3d 22 61 63 63 74 5f | 6e 61 6d 65 22 20 6d 61 |e="acct_|name" ma|
|00001af0| 78 6c 65 6e 67 74 68 3d | 22 31 35 22 20 73 69 7a |xlength=|"15" siz|
|00001b00| 65 3d 22 32 30 22 20 76 | 61 6c 75 65 3d 22 3c 3f |e="20" v|alue="<?|
|00001b10| 70 68 70 20 0a 09 65 63 | 68 6f 20 24 61 63 63 74 |php ..ec|ho $acct|
|00001b20| 5f 6e 61 6d 65 3b 20 3f | 3e 22 3e 0a 3c 74 72 3e |_name; ?|>">.<tr>|
|00001b30| 0a 3c 74 68 20 61 6c 69 | 67 6e 3d 22 72 69 67 68 |.<th ali|gn="righ|
|00001b40| 74 22 3e 0a 50 61 73 73 | 77 6f 72 64 3a 0a 3c 74 |t">.Pass|word:.<t|
|00001b50| 64 3e 0a 3c 69 6e 70 75 | 74 20 74 79 70 65 3d 22 |d>.<inpu|t type="|
|00001b60| 74 65 78 74 22 20 6e 61 | 6d 65 3d 22 61 63 63 74 |text" na|me="acct|
|00001b70| 5f 70 61 73 73 22 20 6d | 61 78 6c 65 6e 67 74 68 |_pass" m|axlength|
|00001b80| 3d 22 33 32 22 20 73 69 | 7a 65 3d 22 32 30 22 3e |="32" si|ze="20">|
|00001b90| 0a 3c 74 72 3e 0a 3c 74 | 64 20 20 63 6f 6c 73 70 |.<tr>.<t|d colsp|
|00001ba0| 61 6e 3d 22 32 22 20 61 | 6c 69 67 6e 3d 22 63 65 |an="2" a|lign="ce|
|00001bb0| 6e 74 65 72 22 3e 0a 3c | 68 72 3e 0a 3c 69 6e 70 |nter">.<|hr>.<inp|
|00001bc0| 75 74 20 6f 6e 43 6c 69 | 63 6b 3d 22 64 6f 43 68 |ut onCli|ck="doCh|
|00001bd0| 61 6c 6c 65 6e 67 65 52 | 65 73 70 6f 6e 73 65 28 |allengeR|esponse(|
|00001be0| 29 3b 20 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |); retur|n false;|
|00001bf0| 22 20 0a 74 79 70 65 3d | 22 73 75 62 6d 69 74 22 |" .type=|"submit"|
|00001c00| 20 6e 61 6d 65 3d 22 73 | 75 62 6d 69 74 62 74 6e | name="s|ubmitbtn|
|00001c10| 22 20 20 63 6c 61 73 73 | 3d 22 62 74 6e 22 20 76 |" class|="btn" v|
|00001c20| 61 6c 75 65 3d 22 20 73 | 75 62 6d 69 74 20 22 3e |alue=" s|ubmit ">|
|00001c30| 0a 3c 2f 74 61 62 6c 65 | 3e 0a 3c 2f 74 61 62 6c |.</table|>.</tabl|
|00001c40| 65 3e 0a 3c 2f 66 6f 72 | 6d 3e 0a 3c 2f 64 69 76 |e>.</for|m>.</div|
|00001c50| 3e 0a 3c 2f 62 6f 64 79 | 3e 0a 3c 2f 68 74 6d 6c |>.</body|>.</html|
|00001c60| 3e 0a 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |>.......|........|
|00001c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 73 65 73 73 69 6f 6e 61 | 75 74 68 2f 68 74 64 6f |sessiona|uth/htdo|
|00001e10| 63 73 2f 73 74 79 6c 65 | 2e 63 73 73 00 00 00 00 |cs/style|.css....|
|00001e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e60| 00 00 00 00 30 31 30 30 | 36 34 34 00 30 30 30 31 |....0100|644.0001|
|00001e70| 37 35 30 00 30 30 30 30 | 31 34 34 00 30 30 30 30 |750.0000|144.0000|
|00001e80| 30 30 30 30 32 32 32 00 | 30 37 30 36 33 32 36 35 |0000222.|07063265|
|00001e90| 33 30 34 00 30 31 35 37 | 37 34 00 20 30 00 00 00 |304.0157|74. 0...|
|00001ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f00| 00 75 73 74 61 72 20 20 | 00 6e 6f 72 6d 61 6e 00 |.ustar |.norman.|
|00001f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f20| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00001f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002000| 62 6f 64 79 20 7b 20 62 | 61 63 6b 67 72 6f 75 6e |body { b|ackgroun|
|00002010| 64 2d 63 6f 6c 6f 72 3a | 20 23 46 46 46 46 46 46 |d-color:| #FFFFFF|
|00002020| 3b 20 7d 0a 68 31 20 7b | 20 74 65 78 74 2d 61 6c |; }.h1 {| text-al|
|00002030| 69 67 6e 3a 20 63 65 6e | 74 65 72 3b 20 7d 0a 68 |ign: cen|ter; }.h|
|00002040| 32 20 7b 20 66 6f 6e 74 | 2d 77 65 69 67 68 74 3a |2 { font|-weight:|
|00002050| 20 6e 6f 72 6d 61 6c 3b | 20 7d 0a 69 6e 70 75 74 | normal;| }.input|
|00002060| 2e 62 74 6e 20 7b 20 62 | 61 63 6b 67 72 6f 75 6e |.btn { b|ackgroun|
|00002070| 64 2d 63 6f 6c 6f 72 3a | 20 23 44 43 44 43 44 43 |d-color:| #DCDCDC|
|00002080| 3b 20 63 6f 6c 6f 72 3a | 20 62 6c 61 63 6b 3b 20 |; color:| black; |
|00002090| 7d 0a 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |}.......|........|
|000020a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002200| 73 65 73 73 69 6f 6e 61 | 75 74 68 2f 68 74 64 6f |sessiona|uth/htdo|
|00002210| 63 73 2f 6d 64 35 2e 6a | 73 00 00 00 00 00 00 00 |cs/md5.j|s.......|
|00002220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002260| 00 00 00 00 30 31 30 30 | 36 34 34 00 30 30 30 31 |....0100|644.0001|
|00002270| 37 35 30 00 30 30 30 30 | 31 34 34 00 30 30 30 30 |750.0000|144.0000|
|00002280| 30 30 32 32 37 30 37 00 | 30 37 30 36 33 32 36 35 |0022707.|07063265|
|00002290| 33 30 34 00 30 31 35 31 | 36 31 00 20 30 00 00 00 |304.0151|61. 0...|
|000022a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002300| 00 75 73 74 61 72 20 20 | 00 6e 6f 72 6d 61 6e 00 |.ustar |.norman.|
|00002310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002320| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00002330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002400| 2f 2a 0a 20 2a 20 20 6d | 64 35 2e 6a 76 73 20 31 |/*. * m|d5.jvs 1|
|00002410| 2e 30 62 20 32 37 2f 30 | 36 2f 39 36 0a 20 2a 0a |.0b 27/0|6/96. *.|
|00002420| 20 2a 20 4a 61 76 61 73 | 63 72 69 70 74 20 69 6d | * Javas|cript im|
|00002430| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 20 6f 66 20 |plementa|tion of |
|00002440| 74 68 65 20 52 53 41 20 | 44 61 74 61 20 53 65 63 |the RSA |Data Sec|
|00002450| 75 72 69 74 79 2c 20 49 | 6e 63 2e 20 4d 44 35 0a |urity, I|nc. MD5.|
|00002460| 20 2a 20 4d 65 73 73 61 | 67 65 2d 44 69 67 65 73 | * Messa|ge-Diges|
|00002470| 74 20 41 6c 67 6f 72 69 | 74 68 6d 2e 0a 20 2a 0a |t Algori|thm.. *.|
|00002480| 20 2a 20 43 6f 70 79 72 | 69 67 68 74 20 28 63 29 | * Copyr|ight (c)|
|00002490| 20 31 39 39 36 20 48 65 | 6e 72 69 20 54 6f 72 67 | 1996 He|nri Torg|
|000024a0| 65 6d 61 6e 65 2e 20 41 | 6c 6c 20 52 69 67 68 74 |emane. A|ll Right|
|000024b0| 73 20 52 65 73 65 72 76 | 65 64 2e 0a 20 2a 0a 20 |s Reserv|ed.. *. |
|000024c0| 2a 20 50 65 72 6d 69 73 | 73 69 6f 6e 20 74 6f 20 |* Permis|sion to |
|000024d0| 75 73 65 2c 20 63 6f 70 | 79 2c 20 6d 6f 64 69 66 |use, cop|y, modif|
|000024e0| 79 2c 20 61 6e 64 20 64 | 69 73 74 72 69 62 75 74 |y, and d|istribut|
|000024f0| 65 20 74 68 69 73 20 73 | 6f 66 74 77 61 72 65 0a |e this s|oftware.|
|00002500| 20 2a 20 61 6e 64 20 69 | 74 73 20 64 6f 63 75 6d | * and i|ts docum|
|00002510| 65 6e 74 61 74 69 6f 6e | 20 66 6f 72 20 61 6e 79 |entation| for any|
|00002520| 20 70 75 72 70 6f 73 65 | 73 20 61 6e 64 20 77 69 | purpose|s and wi|
|00002530| 74 68 6f 75 74 0a 20 2a | 20 66 65 65 20 69 73 20 |thout. *| fee is |
|00002540| 68 65 72 65 62 79 20 67 | 72 61 6e 74 65 64 20 70 |hereby g|ranted p|
|00002550| 72 6f 76 69 64 65 64 20 | 74 68 61 74 20 74 68 69 |rovided |that thi|
|00002560| 73 20 63 6f 70 79 72 69 | 67 68 74 20 6e 6f 74 69 |s copyri|ght noti|
|00002570| 63 65 0a 20 2a 20 61 70 | 70 65 61 72 73 20 69 6e |ce. * ap|pears in|
|00002580| 20 61 6c 6c 20 63 6f 70 | 69 65 73 2e 20 0a 20 2a | all cop|ies. . *|
|00002590| 0a 20 2a 20 4f 66 20 63 | 6f 75 72 73 65 2c 20 74 |. * Of c|ourse, t|
|000025a0| 68 69 73 20 73 6f 66 74 | 20 69 73 20 70 72 6f 76 |his soft| is prov|
|000025b0| 69 64 65 64 20 22 61 73 | 20 69 73 22 20 77 69 74 |ided "as| is" wit|
|000025c0| 68 6f 75 74 20 65 78 70 | 72 65 73 73 20 6f 72 20 |hout exp|ress or |
|000025d0| 69 6d 70 6c 69 65 64 0a | 20 2a 20 77 61 72 72 61 |implied.| * warra|
|000025e0| 6e 74 79 20 6f 66 20 61 | 6e 79 20 6b 69 6e 64 2e |nty of a|ny kind.|
|000025f0| 0a 20 2a 0a 20 2a 20 24 | 49 64 3a 20 6d 64 35 2e |. *. * $|Id: md5.|
|00002600| 6a 73 2c 76 20 31 2e 32 | 20 31 39 39 38 2f 31 31 |js,v 1.2| 1998/11|
|00002610| 2f 32 32 20 31 34 3a 32 | 37 3a 34 32 20 73 61 73 |/22 14:2|7:42 sas|
|00002620| 20 45 78 70 20 24 0a 20 | 2a 0a 20 2a 2f 0a 0a 0a | Exp $. |*. */...|
|00002630| 0a 66 75 6e 63 74 69 6f | 6e 20 61 72 72 61 79 28 |.functio|n array(|
|00002640| 6e 29 20 7b 0a 20 20 66 | 6f 72 28 69 3d 30 3b 69 |n) {. f|or(i=0;i|
|00002650| 3c 6e 3b 69 2b 2b 29 20 | 74 68 69 73 5b 69 5d 3d |<n;i++) |this[i]=|
|00002660| 30 3b 0a 20 20 74 68 69 | 73 2e 6c 65 6e 67 74 68 |0;. thi|s.length|
|00002670| 3d 6e 3b 0a 7d 0a 0a 2f | 2a 20 53 6f 6d 65 20 62 |=n;.}../|* Some b|
|00002680| 61 73 69 63 20 6c 6f 67 | 69 63 61 6c 20 66 75 6e |asic log|ical fun|
|00002690| 63 74 69 6f 6e 73 20 68 | 61 64 20 74 6f 20 62 65 |ctions h|ad to be|
|000026a0| 20 72 65 77 72 69 74 74 | 65 6e 20 62 65 63 61 75 | rewritt|en becau|
|000026b0| 73 65 20 6f 66 20 61 20 | 62 75 67 20 69 6e 0a 20 |se of a |bug in. |
|000026c0| 2a 20 4a 61 76 61 73 63 | 72 69 70 74 2e 2e 20 4a |* Javasc|ript.. J|
|000026d0| 75 73 74 20 74 72 79 20 | 74 6f 20 63 6f 6d 70 75 |ust try |to compu|
|000026e0| 74 65 20 30 78 66 66 66 | 66 66 66 66 66 20 3e 3e |te 0xfff|fffff >>|
|000026f0| 20 34 20 77 69 74 68 20 | 69 74 2e 2e 0a 20 2a 20 | 4 with |it... * |
|00002700| 4f 66 20 63 6f 75 72 73 | 65 2c 20 74 68 65 73 65 |Of cours|e, these|
|00002710| 20 66 75 6e 63 74 69 6f | 6e 73 20 61 72 65 20 73 | functio|ns are s|
|00002720| 6c 6f 77 65 72 20 74 68 | 61 6e 20 74 68 65 20 6f |lower th|an the o|
|00002730| 72 69 67 69 6e 61 6c 20 | 77 6f 75 6c 64 20 62 65 |riginal |would be|
|00002740| 2c 20 62 75 74 0a 20 2a | 20 61 74 20 6c 65 61 73 |, but. *| at leas|
|00002750| 74 2c 20 74 68 65 79 20 | 77 6f 72 6b 21 0a 20 2a |t, they |work!. *|
|00002760| 2f 0a 0a 66 75 6e 63 74 | 69 6f 6e 20 69 6e 74 65 |/..funct|ion inte|
|00002770| 67 65 72 28 6e 29 20 7b | 20 72 65 74 75 72 6e 20 |ger(n) {| return |
|00002780| 6e 25 28 30 78 66 66 66 | 66 66 66 66 66 2b 31 29 |n%(0xfff|fffff+1)|
|00002790| 3b 20 7d 0a 0a 66 75 6e | 63 74 69 6f 6e 20 73 68 |; }..fun|ction sh|
|000027a0| 72 28 61 2c 62 29 20 7b | 0a 20 20 61 3d 69 6e 74 |r(a,b) {|. a=int|
|000027b0| 65 67 65 72 28 61 29 3b | 0a 20 20 62 3d 69 6e 74 |eger(a);|. b=int|
|000027c0| 65 67 65 72 28 62 29 3b | 0a 20 20 69 66 20 28 61 |eger(b);|. if (a|
|000027d0| 2d 30 78 38 30 30 30 30 | 30 30 30 3e 3d 30 29 20 |-0x80000|000>=0) |
|000027e0| 7b 0a 20 20 20 20 61 3d | 61 25 30 78 38 30 30 30 |{. a=|a%0x8000|
|000027f0| 30 30 30 30 3b 0a 20 20 | 20 20 61 3e 3e 3d 62 3b |0000;. | a>>=b;|
|00002800| 0a 20 20 20 20 61 2b 3d | 30 78 34 30 30 30 30 30 |. a+=|0x400000|
|00002810| 30 30 3e 3e 28 62 2d 31 | 29 3b 0a 20 20 7d 20 65 |00>>(b-1|);. } e|
|00002820| 6c 73 65 0a 20 20 20 20 | 61 3e 3e 3d 62 3b 0a 20 |lse. |a>>=b;. |
|00002830| 20 72 65 74 75 72 6e 20 | 61 3b 0a 7d 0a 0a 66 75 | return |a;.}..fu|
|00002840| 6e 63 74 69 6f 6e 20 73 | 68 6c 31 28 61 29 20 7b |nction s|hl1(a) {|
|00002850| 0a 20 20 61 3d 61 25 30 | 78 38 30 30 30 30 30 30 |. a=a%0|x8000000|
|00002860| 30 3b 0a 20 20 69 66 20 | 28 61 26 30 78 34 30 30 |0;. if |(a&0x400|
|00002870| 30 30 30 30 30 3d 3d 30 | 78 34 30 30 30 30 30 30 |00000==0|x4000000|
|00002880| 30 29 0a 20 20 7b 0a 20 | 20 20 20 61 2d 3d 30 78 |0). {. | a-=0x|
|00002890| 34 30 30 30 30 30 30 30 | 3b 20 20 0a 20 20 20 20 |40000000|; . |
|000028a0| 61 2a 3d 32 3b 0a 20 20 | 20 20 61 2b 3d 30 78 38 |a*=2;. | a+=0x8|
|000028b0| 30 30 30 30 30 30 30 3b | 0a 20 20 7d 20 65 6c 73 |0000000;|. } els|
|000028c0| 65 0a 20 20 20 20 61 2a | 3d 32 3b 0a 20 20 72 65 |e. a*|=2;. re|
|000028d0| 74 75 72 6e 20 61 3b 0a | 7d 0a 0a 66 75 6e 63 74 |turn a;.|}..funct|
|000028e0| 69 6f 6e 20 73 68 6c 28 | 61 2c 62 29 20 7b 0a 20 |ion shl(|a,b) {. |
|000028f0| 20 61 3d 69 6e 74 65 67 | 65 72 28 61 29 3b 0a 20 | a=integ|er(a);. |
|00002900| 20 62 3d 69 6e 74 65 67 | 65 72 28 62 29 3b 0a 20 | b=integ|er(b);. |
|00002910| 20 66 6f 72 20 28 76 61 | 72 20 69 3d 30 3b 69 3c | for (va|r i=0;i<|
|00002920| 62 3b 69 2b 2b 29 20 61 | 3d 73 68 6c 31 28 61 29 |b;i++) a|=shl1(a)|
|00002930| 3b 0a 20 20 72 65 74 75 | 72 6e 20 61 3b 0a 7d 0a |;. retu|rn a;.}.|
|00002940| 0a 66 75 6e 63 74 69 6f | 6e 20 61 6e 64 28 61 2c |.functio|n and(a,|
|00002950| 62 29 20 7b 0a 20 20 61 | 3d 69 6e 74 65 67 65 72 |b) {. a|=integer|
|00002960| 28 61 29 3b 0a 20 20 62 | 3d 69 6e 74 65 67 65 72 |(a);. b|=integer|
|00002970| 28 62 29 3b 0a 20 20 76 | 61 72 20 74 31 3d 28 61 |(b);. v|ar t1=(a|
|00002980| 2d 30 78 38 30 30 30 30 | 30 30 30 29 3b 0a 20 20 |-0x80000|000);. |
|00002990| 76 61 72 20 74 32 3d 28 | 62 2d 30 78 38 30 30 30 |var t2=(|b-0x8000|
|000029a0| 30 30 30 30 29 3b 0a 20 | 20 69 66 20 28 74 31 3e |0000);. | if (t1>|
|000029b0| 3d 30 29 20 0a 20 20 20 | 20 69 66 20 28 74 32 3e |=0) . | if (t2>|
|000029c0| 3d 30 29 20 0a 20 20 20 | 20 20 20 72 65 74 75 72 |=0) . | retur|
|000029d0| 6e 20 28 28 74 31 26 74 | 32 29 2b 30 78 38 30 30 |n ((t1&t|2)+0x800|
|000029e0| 30 30 30 30 30 29 3b 0a | 20 20 20 20 65 6c 73 65 |00000);.| else|
|000029f0| 0a 20 20 20 20 20 20 72 | 65 74 75 72 6e 20 28 74 |. r|eturn (t|
|00002a00| 31 26 62 29 3b 0a 20 20 | 65 6c 73 65 0a 20 20 20 |1&b);. |else. |
|00002a10| 20 69 66 20 28 74 32 3e | 3d 30 29 0a 20 20 20 20 | if (t2>|=0). |
|00002a20| 20 20 72 65 74 75 72 6e | 20 28 61 26 74 32 29 3b | return| (a&t2);|
|00002a30| 0a 20 20 20 20 65 6c 73 | 65 0a 20 20 20 20 20 20 |. els|e. |
|00002a40| 72 65 74 75 72 6e 20 28 | 61 26 62 29 3b 20 20 0a |return (|a&b); .|
|00002a50| 7d 0a 0a 66 75 6e 63 74 | 69 6f 6e 20 6f 72 28 61 |}..funct|ion or(a|
|00002a60| 2c 62 29 20 7b 0a 20 20 | 61 3d 69 6e 74 65 67 65 |,b) {. |a=intege|
|00002a70| 72 28 61 29 3b 0a 20 20 | 62 3d 69 6e 74 65 67 65 |r(a);. |b=intege|
|00002a80| 72 28 62 29 3b 0a 20 20 | 76 61 72 20 74 31 3d 28 |r(b);. |var t1=(|
|00002a90| 61 2d 30 78 38 30 30 30 | 30 30 30 30 29 3b 0a 20 |a-0x8000|0000);. |
|00002aa0| 20 76 61 72 20 74 32 3d | 28 62 2d 30 78 38 30 30 | var t2=|(b-0x800|
|00002ab0| 30 30 30 30 30 29 3b 0a | 20 20 69 66 20 28 74 31 |00000);.| if (t1|
|00002ac0| 3e 3d 30 29 20 0a 20 20 | 20 20 69 66 20 28 74 32 |>=0) . | if (t2|
|00002ad0| 3e 3d 30 29 20 0a 20 20 | 20 20 20 20 72 65 74 75 |>=0) . | retu|
|00002ae0| 72 6e 20 28 28 74 31 7c | 74 32 29 2b 30 78 38 30 |rn ((t1||t2)+0x80|
|00002af0| 30 30 30 30 30 30 29 3b | 0a 20 20 20 20 65 6c 73 |000000);|. els|
|00002b00| 65 0a 20 20 20 20 20 20 | 72 65 74 75 72 6e 20 28 |e. |return (|
|00002b10| 28 74 31 7c 62 29 2b 30 | 78 38 30 30 30 30 30 30 |(t1|b)+0|x8000000|
|00002b20| 30 29 3b 0a 20 20 65 6c | 73 65 0a 20 20 20 20 69 |0);. el|se. i|
|00002b30| 66 20 28 74 32 3e 3d 30 | 29 0a 20 20 20 20 20 20 |f (t2>=0|). |
|00002b40| 72 65 74 75 72 6e 20 28 | 28 61 7c 74 32 29 2b 30 |return (|(a|t2)+0|
|00002b50| 78 38 30 30 30 30 30 30 | 30 29 3b 0a 20 20 20 20 |x8000000|0);. |
|00002b60| 65 6c 73 65 0a 20 20 20 | 20 20 20 72 65 74 75 72 |else. | retur|
|00002b70| 6e 20 28 61 7c 62 29 3b | 20 20 0a 7d 0a 0a 66 75 |n (a|b);| .}..fu|
|00002b80| 6e 63 74 69 6f 6e 20 78 | 6f 72 28 61 2c 62 29 20 |nction x|or(a,b) |
|00002b90| 7b 0a 20 20 61 3d 69 6e | 74 65 67 65 72 28 61 29 |{. a=in|teger(a)|
|00002ba0| 3b 0a 20 20 62 3d 69 6e | 74 65 67 65 72 28 62 29 |;. b=in|teger(b)|
|00002bb0| 3b 0a 20 20 76 61 72 20 | 74 31 3d 28 61 2d 30 78 |;. var |t1=(a-0x|
|00002bc0| 38 30 30 30 30 30 30 30 | 29 3b 0a 20 20 76 61 72 |80000000|);. var|
|00002bd0| 20 74 32 3d 28 62 2d 30 | 78 38 30 30 30 30 30 30 | t2=(b-0|x8000000|
|00002be0| 30 29 3b 0a 20 20 69 66 | 20 28 74 31 3e 3d 30 29 |0);. if| (t1>=0)|
|00002bf0| 20 0a 20 20 20 20 69 66 | 20 28 74 32 3e 3d 30 29 | . if| (t2>=0)|
|00002c00| 20 0a 20 20 20 20 20 20 | 72 65 74 75 72 6e 20 28 | . |return (|
|00002c10| 74 31 5e 74 32 29 3b 0a | 20 20 20 20 65 6c 73 65 |t1^t2);.| else|
|00002c20| 0a 20 20 20 20 20 20 72 | 65 74 75 72 6e 20 28 28 |. r|eturn ((|
|00002c30| 74 31 5e 62 29 2b 30 78 | 38 30 30 30 30 30 30 30 |t1^b)+0x|80000000|
|00002c40| 29 3b 0a 20 20 65 6c 73 | 65 0a 20 20 20 20 69 66 |);. els|e. if|
|00002c50| 20 28 74 32 3e 3d 30 29 | 0a 20 20 20 20 20 20 72 | (t2>=0)|. r|
|00002c60| 65 74 75 72 6e 20 28 28 | 61 5e 74 32 29 2b 30 78 |eturn ((|a^t2)+0x|
|00002c70| 38 30 30 30 30 30 30 30 | 29 3b 0a 20 20 20 20 65 |80000000|);. e|
|00002c80| 6c 73 65 0a 20 20 20 20 | 20 20 72 65 74 75 72 6e |lse. | return|
|00002c90| 20 28 61 5e 62 29 3b 20 | 20 0a 7d 0a 0a 66 75 6e | (a^b); | .}..fun|
|00002ca0| 63 74 69 6f 6e 20 6e 6f | 74 28 61 29 20 7b 0a 20 |ction no|t(a) {. |
|00002cb0| 20 61 3d 69 6e 74 65 67 | 65 72 28 61 29 3b 0a 20 | a=integ|er(a);. |
|00002cc0| 20 72 65 74 75 72 6e 20 | 28 30 78 66 66 66 66 66 | return |(0xfffff|
|00002cd0| 66 66 66 2d 61 29 3b 0a | 7d 0a 0a 2f 2a 20 48 65 |fff-a);.|}../* He|
|00002ce0| 72 65 20 62 65 67 69 6e | 20 74 68 65 20 72 65 61 |re begin| the rea|
|00002cf0| 6c 20 61 6c 67 6f 72 69 | 74 68 6d 20 2a 2f 0a 0a |l algori|thm */..|
|00002d00| 20 20 20 20 76 61 72 20 | 73 74 61 74 65 20 3d 20 | var |state = |
|00002d10| 6e 65 77 20 61 72 72 61 | 79 28 34 29 3b 20 0a 20 |new arra|y(4); . |
|00002d20| 20 20 20 76 61 72 20 63 | 6f 75 6e 74 20 3d 20 6e | var c|ount = n|
|00002d30| 65 77 20 61 72 72 61 79 | 28 32 29 3b 0a 09 63 6f |ew array|(2);..co|
|00002d40| 75 6e 74 5b 30 5d 20 3d | 20 30 3b 0a 09 63 6f 75 |unt[0] =| 0;..cou|
|00002d50| 6e 74 5b 31 5d 20 3d 20 | 30 3b 20 20 20 20 20 20 |nt[1] = |0; |
|00002d60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 0a | | .|
|00002d70| 20 20 20 20 76 61 72 20 | 62 75 66 66 65 72 20 3d | var |buffer =|
|00002d80| 20 6e 65 77 20 61 72 72 | 61 79 28 36 34 29 3b 20 | new arr|ay(64); |
|00002d90| 0a 20 20 20 20 76 61 72 | 20 74 72 61 6e 73 66 6f |. var| transfo|
|00002da0| 72 6d 42 75 66 66 65 72 | 20 3d 20 6e 65 77 20 61 |rmBuffer| = new a|
|00002db0| 72 72 61 79 28 31 36 29 | 3b 20 0a 20 20 20 20 76 |rray(16)|; . v|
|00002dc0| 61 72 20 64 69 67 65 73 | 74 42 69 74 73 20 3d 20 |ar diges|tBits = |
|00002dd0| 6e 65 77 20 61 72 72 61 | 79 28 31 36 29 3b 0a 0a |new arra|y(16);..|
|00002de0| 20 20 20 20 76 61 72 20 | 53 31 31 20 3d 20 37 3b | var |S11 = 7;|
|00002df0| 0a 20 20 20 20 76 61 72 | 20 53 31 32 20 3d 20 31 |. var| S12 = 1|
|00002e00| 32 3b 0a 20 20 20 20 76 | 61 72 20 53 31 33 20 3d |2;. v|ar S13 =|
|00002e10| 20 31 37 3b 0a 20 20 20 | 20 76 61 72 20 53 31 34 | 17;. | var S14|
|00002e20| 20 3d 20 32 32 3b 0a 20 | 20 20 20 76 61 72 20 53 | = 22;. | var S|
|00002e30| 32 31 20 3d 20 35 3b 0a | 20 20 20 20 76 61 72 20 |21 = 5;.| var |
|00002e40| 53 32 32 20 3d 20 39 3b | 0a 20 20 20 20 76 61 72 |S22 = 9;|. var|
|00002e50| 20 53 32 33 20 3d 20 31 | 34 3b 0a 20 20 20 20 76 | S23 = 1|4;. v|
|00002e60| 61 72 20 53 32 34 20 3d | 20 32 30 3b 0a 20 20 20 |ar S24 =| 20;. |
|00002e70| 20 76 61 72 20 53 33 31 | 20 3d 20 34 3b 0a 20 20 | var S31| = 4;. |
|00002e80| 20 20 76 61 72 20 53 33 | 32 20 3d 20 31 31 3b 0a | var S3|2 = 11;.|
|00002e90| 20 20 20 20 76 61 72 20 | 53 33 33 20 3d 20 31 36 | var |S33 = 16|
|00002ea0| 3b 0a 20 20 20 20 76 61 | 72 20 53 33 34 20 3d 20 |;. va|r S34 = |
|00002eb0| 32 33 3b 0a 20 20 20 20 | 76 61 72 20 53 34 31 20 |23;. |var S41 |
|00002ec0| 3d 20 36 3b 0a 20 20 20 | 20 76 61 72 20 53 34 32 |= 6;. | var S42|
|00002ed0| 20 3d 20 31 30 3b 0a 20 | 20 20 20 76 61 72 20 53 | = 10;. | var S|
|00002ee0| 34 33 20 3d 20 31 35 3b | 0a 20 20 20 20 76 61 72 |43 = 15;|. var|
|00002ef0| 20 53 34 34 20 3d 20 32 | 31 3b 0a 0a 20 20 20 20 | S44 = 2|1;.. |
|00002f00| 66 75 6e 63 74 69 6f 6e | 20 46 28 78 2c 79 2c 7a |function| F(x,y,z|
|00002f10| 29 20 7b 0a 09 72 65 74 | 75 72 6e 20 6f 72 28 61 |) {..ret|urn or(a|
|00002f20| 6e 64 28 78 2c 79 29 2c | 61 6e 64 28 6e 6f 74 28 |nd(x,y),|and(not(|
|00002f30| 78 29 2c 7a 29 29 3b 0a | 20 20 20 20 7d 0a 0a 20 |x),z));.| }.. |
|00002f40| 20 20 20 66 75 6e 63 74 | 69 6f 6e 20 47 28 78 2c | funct|ion G(x,|
|00002f50| 79 2c 7a 29 20 7b 0a 09 | 72 65 74 75 72 6e 20 6f |y,z) {..|return o|
|00002f60| 72 28 61 6e 64 28 78 2c | 7a 29 2c 61 6e 64 28 79 |r(and(x,|z),and(y|
|00002f70| 2c 6e 6f 74 28 7a 29 29 | 29 3b 0a 20 20 20 20 7d |,not(z))|);. }|
|00002f80| 0a 0a 20 20 20 20 66 75 | 6e 63 74 69 6f 6e 20 48 |.. fu|nction H|
|00002f90| 28 78 2c 79 2c 7a 29 20 | 7b 0a 09 72 65 74 75 72 |(x,y,z) |{..retur|
|00002fa0| 6e 20 78 6f 72 28 78 6f | 72 28 78 2c 79 29 2c 7a |n xor(xo|r(x,y),z|
|00002fb0| 29 3b 0a 20 20 20 20 7d | 0a 0a 20 20 20 20 66 75 |);. }|.. fu|
|00002fc0| 6e 63 74 69 6f 6e 20 49 | 28 78 2c 79 2c 7a 29 20 |nction I|(x,y,z) |
|00002fd0| 7b 0a 09 72 65 74 75 72 | 6e 20 78 6f 72 28 79 20 |{..retur|n xor(y |
|00002fe0| 2c 6f 72 28 78 20 2c 20 | 6e 6f 74 28 7a 29 29 29 |,or(x , |not(z)))|
|00002ff0| 3b 0a 20 20 20 20 7d 0a | 0a 20 20 20 20 66 75 6e |;. }.|. fun|
|00003000| 63 74 69 6f 6e 20 72 6f | 74 61 74 65 4c 65 66 74 |ction ro|tateLeft|
|00003010| 28 61 2c 6e 29 20 7b 0a | 09 72 65 74 75 72 6e 20 |(a,n) {.|.return |
|00003020| 6f 72 28 73 68 6c 28 61 | 2c 20 6e 29 2c 28 73 68 |or(shl(a|, n),(sh|
|00003030| 72 28 61 2c 28 33 32 20 | 2d 20 6e 29 29 29 29 3b |r(a,(32 |- n))));|
|00003040| 0a 20 20 20 20 7d 0a 0a | 20 20 20 20 66 75 6e 63 |. }..| func|
|00003050| 74 69 6f 6e 20 46 46 28 | 61 2c 62 2c 63 2c 64 2c |tion FF(|a,b,c,d,|
|00003060| 78 2c 73 2c 61 63 29 20 | 7b 0a 20 20 20 20 20 20 |x,s,ac) |{. |
|00003070| 20 20 61 20 3d 20 61 2b | 46 28 62 2c 20 63 2c 20 | a = a+|F(b, c, |
|00003080| 64 29 20 2b 20 78 20 2b | 20 61 63 3b 0a 09 61 20 |d) + x +| ac;..a |
|00003090| 3d 20 72 6f 74 61 74 65 | 4c 65 66 74 28 61 2c 20 |= rotate|Left(a, |
|000030a0| 73 29 3b 0a 09 61 20 3d | 20 61 2b 62 3b 0a 09 72 |s);..a =| a+b;..r|
|000030b0| 65 74 75 72 6e 20 61 3b | 0a 20 20 20 20 7d 0a 0a |eturn a;|. }..|
|000030c0| 20 20 20 20 66 75 6e 63 | 74 69 6f 6e 20 47 47 28 | func|tion GG(|
|000030d0| 61 2c 62 2c 63 2c 64 2c | 78 2c 73 2c 61 63 29 20 |a,b,c,d,|x,s,ac) |
|000030e0| 7b 0a 09 61 20 3d 20 61 | 2b 47 28 62 2c 20 63 2c |{..a = a|+G(b, c,|
|000030f0| 20 64 29 20 2b 78 20 2b | 20 61 63 3b 0a 09 61 20 | d) +x +| ac;..a |
|00003100| 3d 20 72 6f 74 61 74 65 | 4c 65 66 74 28 61 2c 20 |= rotate|Left(a, |
|00003110| 73 29 3b 0a 09 61 20 3d | 20 61 2b 62 3b 0a 09 72 |s);..a =| a+b;..r|
|00003120| 65 74 75 72 6e 20 61 3b | 0a 20 20 20 20 7d 0a 0a |eturn a;|. }..|
|00003130| 20 20 20 20 66 75 6e 63 | 74 69 6f 6e 20 48 48 28 | func|tion HH(|
|00003140| 61 2c 62 2c 63 2c 64 2c | 78 2c 73 2c 61 63 29 20 |a,b,c,d,|x,s,ac) |
|00003150| 7b 0a 09 61 20 3d 20 61 | 2b 48 28 62 2c 20 63 2c |{..a = a|+H(b, c,|
|00003160| 20 64 29 20 2b 20 78 20 | 2b 20 61 63 3b 0a 09 61 | d) + x |+ ac;..a|
|00003170| 20 3d 20 72 6f 74 61 74 | 65 4c 65 66 74 28 61 2c | = rotat|eLeft(a,|
|00003180| 20 73 29 3b 0a 09 61 20 | 3d 20 61 2b 62 3b 0a 09 | s);..a |= a+b;..|
|00003190| 72 65 74 75 72 6e 20 61 | 3b 0a 20 20 20 20 7d 0a |return a|;. }.|
|000031a0| 0a 20 20 20 20 66 75 6e | 63 74 69 6f 6e 20 49 49 |. fun|ction II|
|000031b0| 28 61 2c 62 2c 63 2c 64 | 2c 78 2c 73 2c 61 63 29 |(a,b,c,d|,x,s,ac)|
|000031c0| 20 7b 0a 09 61 20 3d 20 | 61 2b 49 28 62 2c 20 63 | {..a = |a+I(b, c|
|000031d0| 2c 20 64 29 20 2b 20 78 | 20 2b 20 61 63 3b 0a 09 |, d) + x| + ac;..|
|000031e0| 61 20 3d 20 72 6f 74 61 | 74 65 4c 65 66 74 28 61 |a = rota|teLeft(a|
|000031f0| 2c 20 73 29 3b 0a 09 61 | 20 3d 20 61 2b 62 3b 0a |, s);..a| = a+b;.|
|00003200| 09 72 65 74 75 72 6e 20 | 61 3b 0a 20 20 20 20 7d |.return |a;. }|
|00003210| 0a 0a 20 20 20 20 66 75 | 6e 63 74 69 6f 6e 20 74 |.. fu|nction t|
|00003220| 72 61 6e 73 66 6f 72 6d | 28 62 75 66 2c 6f 66 66 |ransform|(buf,off|
|00003230| 73 65 74 29 20 7b 20 0a | 09 76 61 72 20 61 3d 30 |set) { .|.var a=0|
|00003240| 2c 20 62 3d 30 2c 20 63 | 3d 30 2c 20 64 3d 30 3b |, b=0, c|=0, d=0;|
|00003250| 20 0a 09 76 61 72 20 78 | 20 3d 20 74 72 61 6e 73 | ..var x| = trans|
|00003260| 66 6f 72 6d 42 75 66 66 | 65 72 3b 0a 09 0a 09 61 |formBuff|er;....a|
|00003270| 20 3d 20 73 74 61 74 65 | 5b 30 5d 3b 0a 09 62 20 | = state|[0];..b |
|00003280| 3d 20 73 74 61 74 65 5b | 31 5d 3b 0a 09 63 20 3d |= state[|1];..c =|
|00003290| 20 73 74 61 74 65 5b 32 | 5d 3b 0a 09 64 20 3d 20 | state[2|];..d = |
|000032a0| 73 74 61 74 65 5b 33 5d | 3b 0a 09 0a 09 66 6f 72 |state[3]|;....for|
|000032b0| 20 28 69 20 3d 20 30 3b | 20 69 20 3c 20 31 36 3b | (i = 0;| i < 16;|
|000032c0| 20 69 2b 2b 29 20 7b 0a | 09 20 20 20 20 78 5b 69 | i++) {.|. x[i|
|000032d0| 5d 20 3d 20 61 6e 64 28 | 62 75 66 5b 69 2a 34 2b |] = and(|buf[i*4+|
|000032e0| 6f 66 66 73 65 74 5d 2c | 30 78 66 66 29 3b 0a 09 |offset],|0xff);..|
|000032f0| 20 20 20 20 66 6f 72 20 | 28 6a 20 3d 20 31 3b 20 | for |(j = 1; |
|00003300| 6a 20 3c 20 34 3b 20 6a | 2b 2b 29 20 7b 0a 09 09 |j < 4; j|++) {...|
|00003310| 78 5b 69 5d 2b 3d 73 68 | 6c 28 61 6e 64 28 62 75 |x[i]+=sh|l(and(bu|
|00003320| 66 5b 69 2a 34 2b 6a 2b | 6f 66 66 73 65 74 5d 20 |f[i*4+j+|offset] |
|00003330| 2c 30 78 66 66 29 2c 20 | 6a 20 2a 20 38 29 3b 0a |,0xff), |j * 8);.|
|00003340| 09 20 20 20 20 7d 0a 09 | 7d 0a 0a 09 2f 2a 20 52 |. }..|}.../* R|
|00003350| 6f 75 6e 64 20 31 20 2a | 2f 0a 09 61 20 3d 20 46 |ound 1 *|/..a = F|
|00003360| 46 20 28 20 61 2c 20 62 | 2c 20 63 2c 20 64 2c 20 |F ( a, b|, c, d, |
|00003370| 78 5b 20 30 5d 2c 20 53 | 31 31 2c 20 30 78 64 37 |x[ 0], S|11, 0xd7|
|00003380| 36 61 61 34 37 38 29 3b | 20 2f 2a 20 31 20 2a 2f |6aa478);| /* 1 */|
|00003390| 0a 09 64 20 3d 20 46 46 | 20 28 20 64 2c 20 61 2c |..d = FF| ( d, a,|
|000033a0| 20 62 2c 20 63 2c 20 78 | 5b 20 31 5d 2c 20 53 31 | b, c, x|[ 1], S1|
|000033b0| 32 2c 20 30 78 65 38 63 | 37 62 37 35 36 29 3b 20 |2, 0xe8c|7b756); |
|000033c0| 2f 2a 20 32 20 2a 2f 0a | 09 63 20 3d 20 46 46 20 |/* 2 */.|.c = FF |
|000033d0| 28 20 63 2c 20 64 2c 20 | 61 2c 20 62 2c 20 78 5b |( c, d, |a, b, x[|
|000033e0| 20 32 5d 2c 20 53 31 33 | 2c 20 30 78 32 34 32 30 | 2], S13|, 0x2420|
|000033f0| 37 30 64 62 29 3b 20 2f | 2a 20 33 20 2a 2f 0a 09 |70db); /|* 3 */..|
|00003400| 62 20 3d 20 46 46 20 28 | 20 62 2c 20 63 2c 20 64 |b = FF (| b, c, d|
|00003410| 2c 20 61 2c 20 78 5b 20 | 33 5d 2c 20 53 31 34 2c |, a, x[ |3], S14,|
|00003420| 20 30 78 63 31 62 64 63 | 65 65 65 29 3b 20 2f 2a | 0xc1bdc|eee); /*|
|00003430| 20 34 20 2a 2f 0a 09 61 | 20 3d 20 46 46 20 28 20 | 4 */..a| = FF ( |
|00003440| 61 2c 20 62 2c 20 63 2c | 20 64 2c 20 78 5b 20 34 |a, b, c,| d, x[ 4|
|00003450| 5d 2c 20 53 31 31 2c 20 | 30 78 66 35 37 63 30 66 |], S11, |0xf57c0f|
|00003460| 61 66 29 3b 20 2f 2a 20 | 35 20 2a 2f 0a 09 64 20 |af); /* |5 */..d |
|00003470| 3d 20 46 46 20 28 20 64 | 2c 20 61 2c 20 62 2c 20 |= FF ( d|, a, b, |
|00003480| 63 2c 20 78 5b 20 35 5d | 2c 20 53 31 32 2c 20 30 |c, x[ 5]|, S12, 0|
|00003490| 78 34 37 38 37 63 36 32 | 61 29 3b 20 2f 2a 20 36 |x4787c62|a); /* 6|
|000034a0| 20 2a 2f 0a 09 63 20 3d | 20 46 46 20 28 20 63 2c | */..c =| FF ( c,|
|000034b0| 20 64 2c 20 61 2c 20 62 | 2c 20 78 5b 20 36 5d 2c | d, a, b|, x[ 6],|
|000034c0| 20 53 31 33 2c 20 30 78 | 61 38 33 30 34 36 31 33 | S13, 0x|a8304613|
|000034d0| 29 3b 20 2f 2a 20 37 20 | 2a 2f 0a 09 62 20 3d 20 |); /* 7 |*/..b = |
|000034e0| 46 46 20 28 20 62 2c 20 | 63 2c 20 64 2c 20 61 2c |FF ( b, |c, d, a,|
|000034f0| 20 78 5b 20 37 5d 2c 20 | 53 31 34 2c 20 30 78 66 | x[ 7], |S14, 0xf|
|00003500| 64 34 36 39 35 30 31 29 | 3b 20 2f 2a 20 38 20 2a |d469501)|; /* 8 *|
|00003510| 2f 0a 09 61 20 3d 20 46 | 46 20 28 20 61 2c 20 62 |/..a = F|F ( a, b|
|00003520| 2c 20 63 2c 20 64 2c 20 | 78 5b 20 38 5d 2c 20 53 |, c, d, |x[ 8], S|
|00003530| 31 31 2c 20 30 78 36 39 | 38 30 39 38 64 38 29 3b |11, 0x69|8098d8);|
|00003540| 20 2f 2a 20 39 20 2a 2f | 0a 09 64 20 3d 20 46 46 | /* 9 */|..d = FF|
|00003550| 20 28 20 64 2c 20 61 2c | 20 62 2c 20 63 2c 20 78 | ( d, a,| b, c, x|
|00003560| 5b 20 39 5d 2c 20 53 31 | 32 2c 20 30 78 38 62 34 |[ 9], S1|2, 0x8b4|
|00003570| 34 66 37 61 66 29 3b 20 | 2f 2a 20 31 30 20 2a 2f |4f7af); |/* 10 */|
|00003580| 0a 09 63 20 3d 20 46 46 | 20 28 20 63 2c 20 64 2c |..c = FF| ( c, d,|
|00003590| 20 61 2c 20 62 2c 20 78 | 5b 31 30 5d 2c 20 53 31 | a, b, x|[10], S1|
|000035a0| 33 2c 20 30 78 66 66 66 | 66 35 62 62 31 29 3b 20 |3, 0xfff|f5bb1); |
|000035b0| 2f 2a 20 31 31 20 2a 2f | 0a 09 62 20 3d 20 46 46 |/* 11 */|..b = FF|
|000035c0| 20 28 20 62 2c 20 63 2c | 20 64 2c 20 61 2c 20 78 | ( b, c,| d, a, x|
|000035d0| 5b 31 31 5d 2c 20 53 31 | 34 2c 20 30 78 38 39 35 |[11], S1|4, 0x895|
|000035e0| 63 64 37 62 65 29 3b 20 | 2f 2a 20 31 32 20 2a 2f |cd7be); |/* 12 */|
|000035f0| 0a 09 61 20 3d 20 46 46 | 20 28 20 61 2c 20 62 2c |..a = FF| ( a, b,|
|00003600| 20 63 2c 20 64 2c 20 78 | 5b 31 32 5d 2c 20 53 31 | c, d, x|[12], S1|
|00003610| 31 2c 20 30 78 36 62 39 | 30 31 31 32 32 29 3b 20 |1, 0x6b9|01122); |
|00003620| 2f 2a 20 31 33 20 2a 2f | 0a 09 64 20 3d 20 46 46 |/* 13 */|..d = FF|
|00003630| 20 28 20 64 2c 20 61 2c | 20 62 2c 20 63 2c 20 78 | ( d, a,| b, c, x|
|00003640| 5b 31 33 5d 2c 20 53 31 | 32 2c 20 30 78 66 64 39 |[13], S1|2, 0xfd9|
|00003650| 38 37 31 39 33 29 3b 20 | 2f 2a 20 31 34 20 2a 2f |87193); |/* 14 */|
|00003660| 0a 09 63 20 3d 20 46 46 | 20 28 20 63 2c 20 64 2c |..c = FF| ( c, d,|
|00003670| 20 61 2c 20 62 2c 20 78 | 5b 31 34 5d 2c 20 53 31 | a, b, x|[14], S1|
|00003680| 33 2c 20 30 78 61 36 37 | 39 34 33 38 65 29 3b 20 |3, 0xa67|9438e); |
|00003690| 2f 2a 20 31 35 20 2a 2f | 0a 09 62 20 3d 20 46 46 |/* 15 */|..b = FF|
|000036a0| 20 28 20 62 2c 20 63 2c | 20 64 2c 20 61 2c 20 78 | ( b, c,| d, a, x|
|000036b0| 5b 31 35 5d 2c 20 53 31 | 34 2c 20 30 78 34 39 62 |[15], S1|4, 0x49b|
|000036c0| 34 30 38 32 31 29 3b 20 | 2f 2a 20 31 36 20 2a 2f |40821); |/* 16 */|
|000036d0| 0a 0a 09 2f 2a 20 52 6f | 75 6e 64 20 32 20 2a 2f |.../* Ro|und 2 */|
|000036e0| 0a 09 61 20 3d 20 47 47 | 20 28 20 61 2c 20 62 2c |..a = GG| ( a, b,|
|000036f0| 20 63 2c 20 64 2c 20 78 | 5b 20 31 5d 2c 20 53 32 | c, d, x|[ 1], S2|
|00003700| 31 2c 20 30 78 66 36 31 | 65 32 35 36 32 29 3b 20 |1, 0xf61|e2562); |
|00003710| 2f 2a 20 31 37 20 2a 2f | 0a 09 64 20 3d 20 47 47 |/* 17 */|..d = GG|
|00003720| 20 28 20 64 2c 20 61 2c | 20 62 2c 20 63 2c 20 78 | ( d, a,| b, c, x|
|00003730| 5b 20 36 5d 2c 20 53 32 | 32 2c 20 30 78 63 30 34 |[ 6], S2|2, 0xc04|
|00003740| 30 62 33 34 30 29 3b 20 | 2f 2a 20 31 38 20 2a 2f |0b340); |/* 18 */|
|00003750| 0a 09 63 20 3d 20 47 47 | 20 28 20 63 2c 20 64 2c |..c = GG| ( c, d,|
|00003760| 20 61 2c 20 62 2c 20 78 | 5b 31 31 5d 2c 20 53 32 | a, b, x|[11], S2|
|00003770| 33 2c 20 30 78 32 36 35 | 65 35 61 35 31 29 3b 20 |3, 0x265|e5a51); |
|00003780| 2f 2a 20 31 39 20 2a 2f | 0a 09 62 20 3d 20 47 47 |/* 19 */|..b = GG|
|00003790| 20 28 20 62 2c 20 63 2c | 20 64 2c 20 61 2c 20 78 | ( b, c,| d, a, x|
|000037a0| 5b 20 30 5d 2c 20 53 32 | 34 2c 20 30 78 65 39 62 |[ 0], S2|4, 0xe9b|
|000037b0| 36 63 37 61 61 29 3b 20 | 2f 2a 20 32 30 20 2a 2f |6c7aa); |/* 20 */|
|000037c0| 0a 09 61 20 3d 20 47 47 | 20 28 20 61 2c 20 62 2c |..a = GG| ( a, b,|
|000037d0| 20 63 2c 20 64 2c 20 78 | 5b 20 35 5d 2c 20 53 32 | c, d, x|[ 5], S2|
|000037e0| 31 2c 20 30 78 64 36 32 | 66 31 30 35 64 29 3b 20 |1, 0xd62|f105d); |
|000037f0| 2f 2a 20 32 31 20 2a 2f | 0a 09 64 20 3d 20 47 47 |/* 21 */|..d = GG|
|00003800| 20 28 20 64 2c 20 61 2c | 20 62 2c 20 63 2c 20 78 | ( d, a,| b, c, x|
|00003810| 5b 31 30 5d 2c 20 53 32 | 32 2c 20 20 30 78 32 34 |[10], S2|2, 0x24|
|00003820| 34 31 34 35 33 29 3b 20 | 2f 2a 20 32 32 20 2a 2f |41453); |/* 22 */|
|00003830| 0a 09 63 20 3d 20 47 47 | 20 28 20 63 2c 20 64 2c |..c = GG| ( c, d,|
|00003840| 20 61 2c 20 62 2c 20 78 | 5b 31 35 5d 2c 20 53 32 | a, b, x|[15], S2|
|00003850| 33 2c 20 30 78 64 38 61 | 31 65 36 38 31 29 3b 20 |3, 0xd8a|1e681); |
|00003860| 2f 2a 20 32 33 20 2a 2f | 0a 09 62 20 3d 20 47 47 |/* 23 */|..b = GG|
|00003870| 20 28 20 62 2c 20 63 2c | 20 64 2c 20 61 2c 20 78 | ( b, c,| d, a, x|
|00003880| 5b 20 34 5d 2c 20 53 32 | 34 2c 20 30 78 65 37 64 |[ 4], S2|4, 0xe7d|
|00003890| 33 66 62 63 38 29 3b 20 | 2f 2a 20 32 34 20 2a 2f |3fbc8); |/* 24 */|
|000038a0| 0a 09 61 20 3d 20 47 47 | 20 28 20 61 2c 20 62 2c |..a = GG| ( a, b,|
|000038b0| 20 63 2c 20 64 2c 20 78 | 5b 20 39 5d 2c 20 53 32 | c, d, x|[ 9], S2|
|000038c0| 31 2c 20 30 78 32 31 65 | 31 63 64 65 36 29 3b 20 |1, 0x21e|1cde6); |
|000038d0| 2f 2a 20 32 35 20 2a 2f | 0a 09 64 20 3d 20 47 47 |/* 25 */|..d = GG|
|000038e0| 20 28 20 64 2c 20 61 2c | 20 62 2c 20 63 2c 20 78 | ( d, a,| b, c, x|
|000038f0| 5b 31 34 5d 2c 20 53 32 | 32 2c 20 30 78 63 33 33 |[14], S2|2, 0xc33|
|00003900| 37 30 37 64 36 29 3b 20 | 2f 2a 20 32 36 20 2a 2f |707d6); |/* 26 */|
|00003910| 0a 09 63 20 3d 20 47 47 | 20 28 20 63 2c 20 64 2c |..c = GG| ( c, d,|
|00003920| 20 61 2c 20 62 2c 20 78 | 5b 20 33 5d 2c 20 53 32 | a, b, x|[ 3], S2|
|00003930| 33 2c 20 30 78 66 34 64 | 35 30 64 38 37 29 3b 20 |3, 0xf4d|50d87); |
|00003940| 2f 2a 20 32 37 20 2a 2f | 0a 09 62 20 3d 20 47 47 |/* 27 */|..b = GG|
|00003950| 20 28 20 62 2c 20 63 2c | 20 64 2c 20 61 2c 20 78 | ( b, c,| d, a, x|
|00003960| 5b 20 38 5d 2c 20 53 32 | 34 2c 20 30 78 34 35 35 |[ 8], S2|4, 0x455|
|00003970| 61 31 34 65 64 29 3b 20 | 2f 2a 20 32 38 20 2a 2f |a14ed); |/* 28 */|
|00003980| 0a 09 61 20 3d 20 47 47 | 20 28 20 61 2c 20 62 2c |..a = GG| ( a, b,|
|00003990| 20 63 2c 20 64 2c 20 78 | 5b 31 33 5d 2c 20 53 32 | c, d, x|[13], S2|
|000039a0| 31 2c 20 30 78 61 39 65 | 33 65 39 30 35 29 3b 20 |1, 0xa9e|3e905); |
|000039b0| 2f 2a 20 32 39 20 2a 2f | 0a 09 64 20 3d 20 47 47 |/* 29 */|..d = GG|
|000039c0| 20 28 20 64 2c 20 61 2c | 20 62 2c 20 63 2c 20 78 | ( d, a,| b, c, x|
|000039d0| 5b 20 32 5d 2c 20 53 32 | 32 2c 20 30 78 66 63 65 |[ 2], S2|2, 0xfce|
|000039e0| 66 61 33 66 38 29 3b 20 | 2f 2a 20 33 30 20 2a 2f |fa3f8); |/* 30 */|
|000039f0| 0a 09 63 20 3d 20 47 47 | 20 28 20 63 2c 20 64 2c |..c = GG| ( c, d,|
|00003a00| 20 61 2c 20 62 2c 20 78 | 5b 20 37 5d 2c 20 53 32 | a, b, x|[ 7], S2|
|00003a10| 33 2c 20 30 78 36 37 36 | 66 30 32 64 39 29 3b 20 |3, 0x676|f02d9); |
|00003a20| 2f 2a 20 33 31 20 2a 2f | 0a 09 62 20 3d 20 47 47 |/* 31 */|..b = GG|
|00003a30| 20 28 20 62 2c 20 63 2c | 20 64 2c 20 61 2c 20 78 | ( b, c,| d, a, x|
|00003a40| 5b 31 32 5d 2c 20 53 32 | 34 2c 20 30 78 38 64 32 |[12], S2|4, 0x8d2|
|00003a50| 61 34 63 38 61 29 3b 20 | 2f 2a 20 33 32 20 2a 2f |a4c8a); |/* 32 */|
|00003a60| 0a 0a 09 2f 2a 20 52 6f | 75 6e 64 20 33 20 2a 2f |.../* Ro|und 3 */|
|00003a70| 0a 09 61 20 3d 20 48 48 | 20 28 20 61 2c 20 62 2c |..a = HH| ( a, b,|
|00003a80| 20 63 2c 20 64 2c 20 78 | 5b 20 35 5d 2c 20 53 33 | c, d, x|[ 5], S3|
|00003a90| 31 2c 20 30 78 66 66 66 | 61 33 39 34 32 29 3b 20 |1, 0xfff|a3942); |
|00003aa0| 2f 2a 20 33 33 20 2a 2f | 0a 09 64 20 3d 20 48 48 |/* 33 */|..d = HH|
|00003ab0| 20 28 20 64 2c 20 61 2c | 20 62 2c 20 63 2c 20 78 | ( d, a,| b, c, x|
|00003ac0| 5b 20 38 5d 2c 20 53 33 | 32 2c 20 30 78 38 37 37 |[ 8], S3|2, 0x877|
|00003ad0| 31 66 36 38 31 29 3b 20 | 2f 2a 20 33 34 20 2a 2f |1f681); |/* 34 */|
|00003ae0| 0a 09 63 20 3d 20 48 48 | 20 28 20 63 2c 20 64 2c |..c = HH| ( c, d,|
|00003af0| 20 61 2c 20 62 2c 20 78 | 5b 31 31 5d 2c 20 53 33 | a, b, x|[11], S3|
|00003b00| 33 2c 20 30 78 36 64 39 | 64 36 31 32 32 29 3b 20 |3, 0x6d9|d6122); |
|00003b10| 2f 2a 20 33 35 20 2a 2f | 0a 09 62 20 3d 20 48 48 |/* 35 */|..b = HH|
|00003b20| 20 28 20 62 2c 20 63 2c | 20 64 2c 20 61 2c 20 78 | ( b, c,| d, a, x|
|00003b30| 5b 31 34 5d 2c 20 53 33 | 34 2c 20 30 78 66 64 65 |[14], S3|4, 0xfde|
|00003b40| 35 33 38 30 63 29 3b 20 | 2f 2a 20 33 36 20 2a 2f |5380c); |/* 36 */|
|00003b50| 0a 09 61 20 3d 20 48 48 | 20 28 20 61 2c 20 62 2c |..a = HH| ( a, b,|
|00003b60| 20 63 2c 20 64 2c 20 78 | 5b 20 31 5d 2c 20 53 33 | c, d, x|[ 1], S3|
|00003b70| 31 2c 20 30 78 61 34 62 | 65 65 61 34 34 29 3b 20 |1, 0xa4b|eea44); |
|00003b80| 2f 2a 20 33 37 20 2a 2f | 0a 09 64 20 3d 20 48 48 |/* 37 */|..d = HH|
|00003b90| 20 28 20 64 2c 20 61 2c | 20 62 2c 20 63 2c 20 78 | ( d, a,| b, c, x|
|00003ba0| 5b 20 34 5d 2c 20 53 33 | 32 2c 20 30 78 34 62 64 |[ 4], S3|2, 0x4bd|
|00003bb0| 65 63 66 61 39 29 3b 20 | 2f 2a 20 33 38 20 2a 2f |ecfa9); |/* 38 */|
|00003bc0| 0a 09 63 20 3d 20 48 48 | 20 28 20 63 2c 20 64 2c |..c = HH| ( c, d,|
|00003bd0| 20 61 2c 20 62 2c 20 78 | 5b 20 37 5d 2c 20 53 33 | a, b, x|[ 7], S3|
|00003be0| 33 2c 20 30 78 66 36 62 | 62 34 62 36 30 29 3b 20 |3, 0xf6b|b4b60); |
|00003bf0| 2f 2a 20 33 39 20 2a 2f | 0a 09 62 20 3d 20 48 48 |/* 39 */|..b = HH|
|00003c00| 20 28 20 62 2c 20 63 2c | 20 64 2c 20 61 2c 20 78 | ( b, c,| d, a, x|
|00003c10| 5b 31 30 5d 2c 20 53 33 | 34 2c 20 30 78 62 65 62 |[10], S3|4, 0xbeb|
|00003c20| 66 62 63 37 30 29 3b 20 | 2f 2a 20 34 30 20 2a 2f |fbc70); |/* 40 */|
|00003c30| 0a 09 61 20 3d 20 48 48 | 20 28 20 61 2c 20 62 2c |..a = HH| ( a, b,|
|00003c40| 20 63 2c 20 64 2c 20 78 | 5b 31 33 5d 2c 20 53 33 | c, d, x|[13], S3|
|00003c50| 31 2c 20 30 78 32 38 39 | 62 37 65 63 36 29 3b 20 |1, 0x289|b7ec6); |
|00003c60| 2f 2a 20 34 31 20 2a 2f | 0a 09 64 20 3d 20 48 48 |/* 41 */|..d = HH|
|00003c70| 20 28 20 64 2c 20 61 2c | 20 62 2c 20 63 2c 20 78 | ( d, a,| b, c, x|
|00003c80| 5b 20 30 5d 2c 20 53 33 | 32 2c 20 30 78 65 61 61 |[ 0], S3|2, 0xeaa|
|00003c90| 31 32 37 66 61 29 3b 20 | 2f 2a 20 34 32 20 2a 2f |127fa); |/* 42 */|
|00003ca0| 0a 09 63 20 3d 20 48 48 | 20 28 20 63 2c 20 64 2c |..c = HH| ( c, d,|
|00003cb0| 20 61 2c 20 62 2c 20 78 | 5b 20 33 5d 2c 20 53 33 | a, b, x|[ 3], S3|
|00003cc0| 33 2c 20 30 78 64 34 65 | 66 33 30 38 35 29 3b 20 |3, 0xd4e|f3085); |
|00003cd0| 2f 2a 20 34 33 20 2a 2f | 0a 09 62 20 3d 20 48 48 |/* 43 */|..b = HH|
|00003ce0| 20 28 20 62 2c 20 63 2c | 20 64 2c 20 61 2c 20 78 | ( b, c,| d, a, x|
|00003cf0| 5b 20 36 5d 2c 20 53 33 | 34 2c 20 20 30 78 34 38 |[ 6], S3|4, 0x48|
|00003d00| 38 31 64 30 35 29 3b 20 | 2f 2a 20 34 34 20 2a 2f |81d05); |/* 44 */|
|00003d10| 0a 09 61 20 3d 20 48 48 | 20 28 20 61 2c 20 62 2c |..a = HH| ( a, b,|
|00003d20| 20 63 2c 20 64 2c 20 78 | 5b 20 39 5d 2c 20 53 33 | c, d, x|[ 9], S3|
|00003d30| 31 2c 20 30 78 64 39 64 | 34 64 30 33 39 29 3b 20 |1, 0xd9d|4d039); |
|00003d40| 2f 2a 20 34 35 20 2a 2f | 0a 09 64 20 3d 20 48 48 |/* 45 */|..d = HH|
|00003d50| 20 28 20 64 2c 20 61 2c | 20 62 2c 20 63 2c 20 78 | ( d, a,| b, c, x|
|00003d60| 5b 31 32 5d 2c 20 53 33 | 32 2c 20 30 78 65 36 64 |[12], S3|2, 0xe6d|
|00003d70| 62 39 39 65 35 29 3b 20 | 2f 2a 20 34 36 20 2a 2f |b99e5); |/* 46 */|
|00003d80| 0a 09 63 20 3d 20 48 48 | 20 28 20 63 2c 20 64 2c |..c = HH| ( c, d,|
|00003d90| 20 61 2c 20 62 2c 20 78 | 5b 31 35 5d 2c 20 53 33 | a, b, x|[15], S3|
|00003da0| 33 2c 20 30 78 31 66 61 | 32 37 63 66 38 29 3b 20 |3, 0x1fa|27cf8); |
|00003db0| 2f 2a 20 34 37 20 2a 2f | 0a 09 62 20 3d 20 48 48 |/* 47 */|..b = HH|
|00003dc0| 20 28 20 62 2c 20 63 2c | 20 64 2c 20 61 2c 20 78 | ( b, c,| d, a, x|
|00003dd0| 5b 20 32 5d 2c 20 53 33 | 34 2c 20 30 78 63 34 61 |[ 2], S3|4, 0xc4a|
|00003de0| 63 35 36 36 35 29 3b 20 | 2f 2a 20 34 38 20 2a 2f |c5665); |/* 48 */|
|00003df0| 0a 0a 09 2f 2a 20 52 6f | 75 6e 64 20 34 20 2a 2f |.../* Ro|und 4 */|
|00003e00| 0a 09 61 20 3d 20 49 49 | 20 28 20 61 2c 20 62 2c |..a = II| ( a, b,|
|00003e10| 20 63 2c 20 64 2c 20 78 | 5b 20 30 5d 2c 20 53 34 | c, d, x|[ 0], S4|
|00003e20| 31 2c 20 30 78 66 34 32 | 39 32 32 34 34 29 3b 20 |1, 0xf42|92244); |
|00003e30| 2f 2a 20 34 39 20 2a 2f | 0a 09 64 20 3d 20 49 49 |/* 49 */|..d = II|
|00003e40| 20 28 20 64 2c 20 61 2c | 20 62 2c 20 63 2c 20 78 | ( d, a,| b, c, x|
|00003e50| 5b 20 37 5d 2c 20 53 34 | 32 2c 20 30 78 34 33 32 |[ 7], S4|2, 0x432|
|00003e60| 61 66 66 39 37 29 3b 20 | 2f 2a 20 35 30 20 2a 2f |aff97); |/* 50 */|
|00003e70| 0a 09 63 20 3d 20 49 49 | 20 28 20 63 2c 20 64 2c |..c = II| ( c, d,|
|00003e80| 20 61 2c 20 62 2c 20 78 | 5b 31 34 5d 2c 20 53 34 | a, b, x|[14], S4|
|00003e90| 33 2c 20 30 78 61 62 39 | 34 32 33 61 37 29 3b 20 |3, 0xab9|423a7); |
|00003ea0| 2f 2a 20 35 31 20 2a 2f | 0a 09 62 20 3d 20 49 49 |/* 51 */|..b = II|
|00003eb0| 20 28 20 62 2c 20 63 2c | 20 64 2c 20 61 2c 20 78 | ( b, c,| d, a, x|
|00003ec0| 5b 20 35 5d 2c 20 53 34 | 34 2c 20 30 78 66 63 39 |[ 5], S4|4, 0xfc9|
|00003ed0| 33 61 30 33 39 29 3b 20 | 2f 2a 20 35 32 20 2a 2f |3a039); |/* 52 */|
|00003ee0| 0a 09 61 20 3d 20 49 49 | 20 28 20 61 2c 20 62 2c |..a = II| ( a, b,|
|00003ef0| 20 63 2c 20 64 2c 20 78 | 5b 31 32 5d 2c 20 53 34 | c, d, x|[12], S4|
|00003f00| 31 2c 20 30 78 36 35 35 | 62 35 39 63 33 29 3b 20 |1, 0x655|b59c3); |
|00003f10| 2f 2a 20 35 33 20 2a 2f | 0a 09 64 20 3d 20 49 49 |/* 53 */|..d = II|
|00003f20| 20 28 20 64 2c 20 61 2c | 20 62 2c 20 63 2c 20 78 | ( d, a,| b, c, x|
|00003f30| 5b 20 33 5d 2c 20 53 34 | 32 2c 20 30 78 38 66 30 |[ 3], S4|2, 0x8f0|
|00003f40| 63 63 63 39 32 29 3b 20 | 2f 2a 20 35 34 20 2a 2f |ccc92); |/* 54 */|
|00003f50| 0a 09 63 20 3d 20 49 49 | 20 28 20 63 2c 20 64 2c |..c = II| ( c, d,|
|00003f60| 20 61 2c 20 62 2c 20 78 | 5b 31 30 5d 2c 20 53 34 | a, b, x|[10], S4|
|00003f70| 33 2c 20 30 78 66 66 65 | 66 66 34 37 64 29 3b 20 |3, 0xffe|ff47d); |
|00003f80| 2f 2a 20 35 35 20 2a 2f | 0a 09 62 20 3d 20 49 49 |/* 55 */|..b = II|
|00003f90| 20 28 20 62 2c 20 63 2c | 20 64 2c 20 61 2c 20 78 | ( b, c,| d, a, x|
|00003fa0| 5b 20 31 5d 2c 20 53 34 | 34 2c 20 30 78 38 35 38 |[ 1], S4|4, 0x858|
|00003fb0| 34 35 64 64 31 29 3b 20 | 2f 2a 20 35 36 20 2a 2f |45dd1); |/* 56 */|
|00003fc0| 0a 09 61 20 3d 20 49 49 | 20 28 20 61 2c 20 62 2c |..a = II| ( a, b,|
|00003fd0| 20 63 2c 20 64 2c 20 78 | 5b 20 38 5d 2c 20 53 34 | c, d, x|[ 8], S4|
|00003fe0| 31 2c 20 30 78 36 66 61 | 38 37 65 34 66 29 3b 20 |1, 0x6fa|87e4f); |
|00003ff0| 2f 2a 20 35 37 20 2a 2f | 0a 09 64 20 3d 20 49 49 |/* 57 */|..d = II|
|00004000| 20 28 20 64 2c 20 61 2c | 20 62 2c 20 63 2c 20 78 | ( d, a,| b, c, x|
|00004010| 5b 31 35 5d 2c 20 53 34 | 32 2c 20 30 78 66 65 32 |[15], S4|2, 0xfe2|
|00004020| 63 65 36 65 30 29 3b 20 | 2f 2a 20 35 38 20 2a 2f |ce6e0); |/* 58 */|
|00004030| 0a 09 63 20 3d 20 49 49 | 20 28 20 63 2c 20 64 2c |..c = II| ( c, d,|
|00004040| 20 61 2c 20 62 2c 20 78 | 5b 20 36 5d 2c 20 53 34 | a, b, x|[ 6], S4|
|00004050| 33 2c 20 30 78 61 33 30 | 31 34 33 31 34 29 3b 20 |3, 0xa30|14314); |
|00004060| 2f 2a 20 35 39 20 2a 2f | 0a 09 62 20 3d 20 49 49 |/* 59 */|..b = II|
|00004070| 20 28 20 62 2c 20 63 2c | 20 64 2c 20 61 2c 20 78 | ( b, c,| d, a, x|
|00004080| 5b 31 33 5d 2c 20 53 34 | 34 2c 20 30 78 34 65 30 |[13], S4|4, 0x4e0|
|00004090| 38 31 31 61 31 29 3b 20 | 2f 2a 20 36 30 20 2a 2f |811a1); |/* 60 */|
|000040a0| 0a 09 61 20 3d 20 49 49 | 20 28 20 61 2c 20 62 2c |..a = II| ( a, b,|
|000040b0| 20 63 2c 20 64 2c 20 78 | 5b 20 34 5d 2c 20 53 34 | c, d, x|[ 4], S4|
|000040c0| 31 2c 20 30 78 66 37 35 | 33 37 65 38 32 29 3b 20 |1, 0xf75|37e82); |
|000040d0| 2f 2a 20 36 31 20 2a 2f | 0a 09 64 20 3d 20 49 49 |/* 61 */|..d = II|
|000040e0| 20 28 20 64 2c 20 61 2c | 20 62 2c 20 63 2c 20 78 | ( d, a,| b, c, x|
|000040f0| 5b 31 31 5d 2c 20 53 34 | 32 2c 20 30 78 62 64 33 |[11], S4|2, 0xbd3|
|00004100| 61 66 32 33 35 29 3b 20 | 2f 2a 20 36 32 20 2a 2f |af235); |/* 62 */|
|00004110| 0a 09 63 20 3d 20 49 49 | 20 28 20 63 2c 20 64 2c |..c = II| ( c, d,|
|00004120| 20 61 2c 20 62 2c 20 78 | 5b 20 32 5d 2c 20 53 34 | a, b, x|[ 2], S4|
|00004130| 33 2c 20 30 78 32 61 64 | 37 64 32 62 62 29 3b 20 |3, 0x2ad|7d2bb); |
|00004140| 2f 2a 20 36 33 20 2a 2f | 0a 09 62 20 3d 20 49 49 |/* 63 */|..b = II|
|00004150| 20 28 20 62 2c 20 63 2c | 20 64 2c 20 61 2c 20 78 | ( b, c,| d, a, x|
|00004160| 5b 20 39 5d 2c 20 53 34 | 34 2c 20 30 78 65 62 38 |[ 9], S4|4, 0xeb8|
|00004170| 36 64 33 39 31 29 3b 20 | 2f 2a 20 36 34 20 2a 2f |6d391); |/* 64 */|
|00004180| 0a 0a 09 73 74 61 74 65 | 5b 30 5d 20 2b 3d 61 3b |...state|[0] +=a;|
|00004190| 0a 09 73 74 61 74 65 5b | 31 5d 20 2b 3d 62 3b 0a |..state[|1] +=b;.|
|000041a0| 09 73 74 61 74 65 5b 32 | 5d 20 2b 3d 63 3b 0a 09 |.state[2|] +=c;..|
|000041b0| 73 74 61 74 65 5b 33 5d | 20 2b 3d 64 3b 0a 0a 20 |state[3]| +=d;.. |
|000041c0| 20 20 20 7d 0a 0a 20 20 | 20 20 66 75 6e 63 74 69 | }.. | functi|
|000041d0| 6f 6e 20 69 6e 69 74 28 | 29 20 7b 0a 09 63 6f 75 |on init(|) {..cou|
|000041e0| 6e 74 5b 30 5d 3d 63 6f | 75 6e 74 5b 31 5d 20 3d |nt[0]=co|unt[1] =|
|000041f0| 20 30 3b 0a 09 73 74 61 | 74 65 5b 30 5d 20 3d 20 | 0;..sta|te[0] = |
|00004200| 30 78 36 37 34 35 32 33 | 30 31 3b 0a 09 73 74 61 |0x674523|01;..sta|
|00004210| 74 65 5b 31 5d 20 3d 20 | 30 78 65 66 63 64 61 62 |te[1] = |0xefcdab|
|00004220| 38 39 3b 0a 09 73 74 61 | 74 65 5b 32 5d 20 3d 20 |89;..sta|te[2] = |
|00004230| 30 78 39 38 62 61 64 63 | 66 65 3b 0a 09 73 74 61 |0x98badc|fe;..sta|
|00004240| 74 65 5b 33 5d 20 3d 20 | 30 78 31 30 33 32 35 34 |te[3] = |0x103254|
|00004250| 37 36 3b 0a 09 66 6f 72 | 20 28 69 20 3d 20 30 3b |76;..for| (i = 0;|
|00004260| 20 69 20 3c 20 64 69 67 | 65 73 74 42 69 74 73 2e | i < dig|estBits.|
|00004270| 6c 65 6e 67 74 68 3b 20 | 69 2b 2b 29 0a 09 20 20 |length; |i++).. |
|00004280| 20 20 64 69 67 65 73 74 | 42 69 74 73 5b 69 5d 20 | digest|Bits[i] |
|00004290| 3d 20 30 3b 0a 20 20 20 | 20 7d 0a 0a 20 20 20 20 |= 0;. | }.. |
|000042a0| 66 75 6e 63 74 69 6f 6e | 20 75 70 64 61 74 65 28 |function| update(|
|000042b0| 62 29 20 7b 20 0a 09 76 | 61 72 20 69 6e 64 65 78 |b) { ..v|ar index|
|000042c0| 2c 69 3b 0a 09 0a 09 69 | 6e 64 65 78 20 3d 20 61 |,i;....i|ndex = a|
|000042d0| 6e 64 28 73 68 72 28 63 | 6f 75 6e 74 5b 30 5d 2c |nd(shr(c|ount[0],|
|000042e0| 33 29 20 2c 20 30 78 33 | 66 29 3b 0a 09 69 66 20 |3) , 0x3|f);..if |
|000042f0| 28 63 6f 75 6e 74 5b 30 | 5d 3c 30 78 66 66 66 66 |(count[0|]<0xffff|
|00004300| 66 66 66 66 2d 37 29 20 | 0a 09 20 20 63 6f 75 6e |ffff-7) |.. coun|
|00004310| 74 5b 30 5d 20 2b 3d 20 | 38 3b 0a 20 20 20 20 20 |t[0] += |8;. |
|00004320| 20 20 20 65 6c 73 65 20 | 7b 0a 09 20 20 63 6f 75 | else |{.. cou|
|00004330| 6e 74 5b 31 5d 2b 2b 3b | 0a 09 20 20 63 6f 75 6e |nt[1]++;|.. coun|
|00004340| 74 5b 30 5d 2d 3d 30 78 | 66 66 66 66 66 66 66 66 |t[0]-=0x|ffffffff|
|00004350| 2b 31 3b 0a 20 20 20 20 | 20 20 20 20 20 20 63 6f |+1;. | co|
|00004360| 75 6e 74 5b 30 5d 2b 3d | 38 3b 0a 20 20 20 20 20 |unt[0]+=|8;. |
|00004370| 20 20 20 7d 0a 09 62 75 | 66 66 65 72 5b 69 6e 64 | }..bu|ffer[ind|
|00004380| 65 78 5d 20 3d 20 61 6e | 64 28 62 2c 30 78 66 66 |ex] = an|d(b,0xff|
|00004390| 29 3b 0a 09 69 66 20 28 | 69 6e 64 65 78 20 20 3e |);..if (|index >|
|000043a0| 3d 20 36 33 29 20 7b 0a | 09 20 20 20 20 74 72 61 |= 63) {.|. tra|
|000043b0| 6e 73 66 6f 72 6d 28 62 | 75 66 66 65 72 2c 20 30 |nsform(b|uffer, 0|
|000043c0| 29 3b 0a 09 7d 0a 20 20 | 20 20 7d 0a 0a 20 20 20 |);..}. | }.. |
|000043d0| 20 66 75 6e 63 74 69 6f | 6e 20 66 69 6e 69 73 68 | functio|n finish|
|000043e0| 28 29 20 7b 0a 09 76 61 | 72 20 62 69 74 73 20 3d |() {..va|r bits =|
|000043f0| 20 6e 65 77 20 61 72 72 | 61 79 28 38 29 3b 0a 09 | new arr|ay(8);..|
|00004400| 76 61 72 09 70 61 64 64 | 69 6e 67 3b 20 0a 09 76 |var.padd|ing; ..v|
|00004410| 61 72 09 69 3d 30 2c 20 | 69 6e 64 65 78 3d 30 2c |ar.i=0, |index=0,|
|00004420| 20 70 61 64 4c 65 6e 3d | 30 3b 0a 0a 09 66 6f 72 | padLen=|0;...for|
|00004430| 20 28 69 20 3d 20 30 3b | 20 69 20 3c 20 34 3b 20 | (i = 0;| i < 4; |
|00004440| 69 2b 2b 29 20 7b 0a 09 | 20 20 20 20 62 69 74 73 |i++) {..| bits|
|00004450| 5b 69 5d 20 3d 20 61 6e | 64 28 73 68 72 28 63 6f |[i] = an|d(shr(co|
|00004460| 75 6e 74 5b 30 5d 2c 28 | 69 20 2a 20 38 29 29 2c |unt[0],(|i * 8)),|
|00004470| 20 30 78 66 66 29 3b 0a | 09 7d 0a 20 20 20 20 20 | 0xff);.|.}. |
|00004480| 20 20 20 66 6f 72 20 28 | 69 20 3d 20 30 3b 20 69 | for (|i = 0; i|
|00004490| 20 3c 20 34 3b 20 69 2b | 2b 29 20 7b 0a 09 20 20 | < 4; i+|+) {.. |
|000044a0| 20 20 62 69 74 73 5b 69 | 2b 34 5d 3d 61 6e 64 28 | bits[i|+4]=and(|
|000044b0| 73 68 72 28 63 6f 75 6e | 74 5b 31 5d 2c 28 69 20 |shr(coun|t[1],(i |
|000044c0| 2a 20 38 29 29 2c 20 30 | 78 66 66 29 3b 0a 09 7d |* 8)), 0|xff);..}|
|000044d0| 0a 09 69 6e 64 65 78 20 | 3d 20 61 6e 64 28 73 68 |..index |= and(sh|
|000044e0| 72 28 63 6f 75 6e 74 5b | 30 5d 2c 20 33 29 20 2c |r(count[|0], 3) ,|
|000044f0| 30 78 33 66 29 3b 0a 09 | 70 61 64 4c 65 6e 20 3d |0x3f);..|padLen =|
|00004500| 20 28 69 6e 64 65 78 20 | 3c 20 35 36 29 20 3f 20 | (index |< 56) ? |
|00004510| 28 35 36 20 2d 20 69 6e | 64 65 78 29 20 3a 20 28 |(56 - in|dex) : (|
|00004520| 31 32 30 20 2d 20 69 6e | 64 65 78 29 3b 0a 09 70 |120 - in|dex);..p|
|00004530| 61 64 64 69 6e 67 20 3d | 20 6e 65 77 20 61 72 72 |adding =| new arr|
|00004540| 61 79 28 36 34 29 3b 20 | 0a 09 70 61 64 64 69 6e |ay(64); |..paddin|
|00004550| 67 5b 30 5d 20 3d 20 30 | 78 38 30 3b 0a 20 20 20 |g[0] = 0|x80;. |
|00004560| 20 20 20 20 20 66 6f 72 | 20 28 69 3d 30 3b 69 3c | for| (i=0;i<|
|00004570| 70 61 64 4c 65 6e 3b 69 | 2b 2b 29 0a 09 20 20 75 |padLen;i|++).. u|
|00004580| 70 64 61 74 65 28 70 61 | 64 64 69 6e 67 5b 69 5d |pdate(pa|dding[i]|
|00004590| 29 3b 0a 20 20 20 20 20 | 20 20 20 66 6f 72 20 28 |);. | for (|
|000045a0| 69 3d 30 3b 69 3c 38 3b | 69 2b 2b 29 20 0a 09 20 |i=0;i<8;|i++) .. |
|000045b0| 20 75 70 64 61 74 65 28 | 62 69 74 73 5b 69 5d 29 | update(|bits[i])|
|000045c0| 3b 0a 0a 09 66 6f 72 20 | 28 69 20 3d 20 30 3b 20 |;...for |(i = 0; |
|000045d0| 69 20 3c 20 34 3b 20 69 | 2b 2b 29 20 7b 0a 09 20 |i < 4; i|++) {.. |
|000045e0| 20 20 20 66 6f 72 20 28 | 6a 20 3d 20 30 3b 20 6a | for (|j = 0; j|
|000045f0| 20 3c 20 34 3b 20 6a 2b | 2b 29 20 7b 0a 09 09 64 | < 4; j+|+) {...d|
|00004600| 69 67 65 73 74 42 69 74 | 73 5b 69 2a 34 2b 6a 5d |igestBit|s[i*4+j]|
|00004610| 20 3d 20 61 6e 64 28 73 | 68 72 28 73 74 61 74 65 | = and(s|hr(state|
|00004620| 5b 69 5d 2c 20 28 6a 20 | 2a 20 38 29 29 20 2c 20 |[i], (j |* 8)) , |
|00004630| 30 78 66 66 29 3b 0a 09 | 20 20 20 20 7d 0a 09 7d |0xff);..| }..}|
|00004640| 20 0a 20 20 20 20 7d 0a | 0a 2f 2a 20 45 6e 64 20 | . }.|./* End |
|00004650| 6f 66 20 74 68 65 20 4d | 44 35 20 61 6c 67 6f 72 |of the M|D5 algor|
|00004660| 69 74 68 6d 20 2a 2f 0a | 0a 66 75 6e 63 74 69 6f |ithm */.|.functio|
|00004670| 6e 20 68 65 78 61 28 6e | 29 20 7b 0a 20 76 61 72 |n hexa(n|) {. var|
|00004680| 20 68 65 78 61 5f 68 20 | 3d 20 22 30 31 32 33 34 | hexa_h |= "01234|
|00004690| 35 36 37 38 39 61 62 63 | 64 65 66 22 3b 0a 20 76 |56789abc|def";. v|
|000046a0| 61 72 20 68 65 78 61 5f | 63 3d 22 22 3b 20 0a 20 |ar hexa_|c=""; . |
|000046b0| 76 61 72 20 68 65 78 61 | 5f 6d 3d 6e 3b 0a 20 66 |var hexa|_m=n;. f|
|000046c0| 6f 72 20 28 68 65 78 61 | 5f 69 3d 30 3b 68 65 78 |or (hexa|_i=0;hex|
|000046d0| 61 5f 69 3c 38 3b 68 65 | 78 61 5f 69 2b 2b 29 20 |a_i<8;he|xa_i++) |
|000046e0| 7b 0a 20 20 20 68 65 78 | 61 5f 63 3d 68 65 78 61 |{. hex|a_c=hexa|
|000046f0| 5f 68 2e 63 68 61 72 41 | 74 28 4d 61 74 68 2e 61 |_h.charA|t(Math.a|
|00004700| 62 73 28 68 65 78 61 5f | 6d 29 25 31 36 29 2b 68 |bs(hexa_|m)%16)+h|
|00004710| 65 78 61 5f 63 3b 0a 20 | 20 20 68 65 78 61 5f 6d |exa_c;. | hexa_m|
|00004720| 3d 4d 61 74 68 2e 66 6c | 6f 6f 72 28 68 65 78 61 |=Math.fl|oor(hexa|
|00004730| 5f 6d 2f 31 36 29 3b 0a | 20 7d 0a 20 72 65 74 75 |_m/16);.| }. retu|
|00004740| 72 6e 20 68 65 78 61 5f | 63 3b 0a 7d 0a 0a 0a 76 |rn hexa_|c;.}...v|
|00004750| 61 72 20 61 73 63 69 69 | 3d 22 30 31 32 33 34 35 |ar ascii|="012345|
|00004760| 36 37 38 39 30 31 32 33 | 34 35 36 37 38 39 30 31 |67890123|45678901|
|00004770| 32 33 34 35 36 37 38 39 | 30 31 22 20 2b 0a 20 20 |23456789|01" +. |
|00004780| 20 20 20 20 20 20 20 20 | 22 20 21 5c 22 23 24 25 | |" !\"#$%|
|00004790| 26 27 28 29 2a 2b 2c 2d | 2e 2f 30 31 32 33 34 35 |&'()*+,-|./012345|
|000047a0| 36 37 38 39 3a 3b 3c 3d | 3e 3f 40 41 42 43 44 45 |6789:;<=|>?@ABCDE|
|000047b0| 46 47 48 49 4a 4b 4c 4d | 4e 4f 50 51 52 53 54 55 |FGHIJKLM|NOPQRSTU|
|000047c0| 56 57 58 59 5a 22 2b 0a | 20 20 20 20 20 20 20 20 |VWXYZ"+.| |
|000047d0| 20 20 22 5b 5c 5c 5d 5e | 5f 60 61 62 63 64 65 66 | "[\\]^|_`abcdef|
|000047e0| 67 68 69 6a 6b 6c 6d 6e | 6f 70 71 72 73 74 75 76 |ghijklmn|opqrstuv|
|000047f0| 77 78 79 7a 7b 7c 7d 7e | 22 3b 0a 0a 66 75 6e 63 |wxyz{|}~|";..func|
|00004800| 74 69 6f 6e 20 4d 44 35 | 28 65 6e 74 72 65 65 29 |tion MD5|(entree)|
|00004810| 20 0a 7b 0a 20 76 61 72 | 20 6c 2c 73 2c 6b 2c 6b | .{. var| l,s,k,k|
|00004820| 61 2c 6b 62 2c 6b 63 2c | 6b 64 3b 0a 0a 20 69 6e |a,kb,kc,|kd;.. in|
|00004830| 69 74 28 29 3b 0a 20 66 | 6f 72 20 28 6b 3d 30 3b |it();. f|or (k=0;|
|00004840| 6b 3c 65 6e 74 72 65 65 | 2e 6c 65 6e 67 74 68 3b |k<entree|.length;|
|00004850| 6b 2b 2b 29 20 7b 0a 20 | 20 20 6c 3d 65 6e 74 72 |k++) {. | l=entr|
|00004860| 65 65 2e 63 68 61 72 41 | 74 28 6b 29 3b 0a 20 20 |ee.charA|t(k);. |
|00004870| 20 75 70 64 61 74 65 28 | 61 73 63 69 69 2e 6c 61 | update(|ascii.la|
|00004880| 73 74 49 6e 64 65 78 4f | 66 28 6c 29 29 3b 0a 20 |stIndexO|f(l));. |
|00004890| 7d 0a 20 66 69 6e 69 73 | 68 28 29 3b 0a 20 6b 61 |}. finis|h();. ka|
|000048a0| 3d 6b 62 3d 6b 63 3d 6b | 64 3d 30 3b 0a 20 66 6f |=kb=kc=k|d=0;. fo|
|000048b0| 72 20 28 69 3d 30 3b 69 | 3c 34 3b 69 2b 2b 29 20 |r (i=0;i|<4;i++) |
|000048c0| 6b 61 2b 3d 73 68 6c 28 | 64 69 67 65 73 74 42 69 |ka+=shl(|digestBi|
|000048d0| 74 73 5b 31 35 2d 69 5d | 2c 20 28 69 2a 38 29 29 |ts[15-i]|, (i*8))|
|000048e0| 3b 0a 20 66 6f 72 20 28 | 69 3d 34 3b 69 3c 38 3b |;. for (|i=4;i<8;|
|000048f0| 69 2b 2b 29 20 6b 62 2b | 3d 73 68 6c 28 64 69 67 |i++) kb+|=shl(dig|
|00004900| 65 73 74 42 69 74 73 5b | 31 35 2d 69 5d 2c 20 28 |estBits[|15-i], (|
|00004910| 28 69 2d 34 29 2a 38 29 | 29 3b 0a 20 66 6f 72 20 |(i-4)*8)|);. for |
|00004920| 28 69 3d 38 3b 69 3c 31 | 32 3b 69 2b 2b 29 20 6b |(i=8;i<1|2;i++) k|
|00004930| 63 2b 3d 73 68 6c 28 64 | 69 67 65 73 74 42 69 74 |c+=shl(d|igestBit|
|00004940| 73 5b 31 35 2d 69 5d 2c | 20 28 28 69 2d 38 29 2a |s[15-i],| ((i-8)*|
|00004950| 38 29 29 3b 0a 20 66 6f | 72 20 28 69 3d 31 32 3b |8));. fo|r (i=12;|
|00004960| 69 3c 31 36 3b 69 2b 2b | 29 20 6b 64 2b 3d 73 68 |i<16;i++|) kd+=sh|
|00004970| 6c 28 64 69 67 65 73 74 | 42 69 74 73 5b 31 35 2d |l(digest|Bits[15-|
|00004980| 69 5d 2c 20 28 28 69 2d | 31 32 29 2a 38 29 29 3b |i], ((i-|12)*8));|
|00004990| 0a 20 73 3d 68 65 78 61 | 28 6b 64 29 2b 68 65 78 |. s=hexa|(kd)+hex|
|000049a0| 61 28 6b 63 29 2b 68 65 | 78 61 28 6b 62 29 2b 68 |a(kc)+he|xa(kb)+h|
|000049b0| 65 78 61 28 6b 61 29 3b | 0a 20 72 65 74 75 72 6e |exa(ka);|. return|
|000049c0| 20 73 3b 20 0a 7d 0a 00 | 00 00 00 00 00 00 00 00 | s; .}..|........|
|000049d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a00| 73 65 73 73 69 6f 6e 61 | 75 74 68 2f 68 74 64 6f |sessiona|uth/htdo|
|00004a10| 63 73 2f 73 63 72 69 70 | 74 73 2f 00 00 00 00 00 |cs/scrip|ts/.....|
|00004a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a60| 00 00 00 00 30 30 34 30 | 37 35 35 00 30 30 30 31 |....0040|755.0001|
|00004a70| 37 35 30 00 30 30 30 30 | 31 34 34 00 30 30 30 30 |750.0000|144.0000|
|00004a80| 30 30 30 30 30 30 30 00 | 30 37 30 36 33 32 37 32 |0000000.|07063272|
|00004a90| 30 35 31 00 30 31 35 36 | 31 35 00 20 35 00 00 00 |051.0156|15. 5...|
|00004aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b00| 00 75 73 74 61 72 20 20 | 00 6e 6f 72 6d 61 6e 00 |.ustar |.norman.|
|00004b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b20| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00004b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c00| 73 65 73 73 69 6f 6e 61 | 75 74 68 2f 68 74 64 6f |sessiona|uth/htdo|
|00004c10| 63 73 2f 73 63 72 69 70 | 74 73 2f 6c 6f 67 6f 75 |cs/scrip|ts/logou|
|00004c20| 74 2e 70 68 70 00 00 00 | 00 00 00 00 00 00 00 00 |t.php...|........|
|00004c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c60| 00 00 00 00 30 31 30 30 | 36 34 34 00 30 30 30 31 |....0100|644.0001|
|00004c70| 37 35 30 00 30 30 30 30 | 31 34 34 00 30 30 30 30 |750.0000|144.0000|
|00004c80| 30 30 30 30 31 36 33 00 | 30 37 30 36 33 32 37 31 |0000163.|07063271|
|00004c90| 37 37 34 00 30 31 37 36 | 34 37 00 20 30 00 00 00 |774.0176|47. 0...|
|00004ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d00| 00 75 73 74 61 72 20 20 | 00 6e 6f 72 6d 61 6e 00 |.ustar |.norman.|
|00004d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d20| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00004d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e00| 3c 3f 70 68 70 0a 72 65 | 71 75 69 72 65 28 27 2e |<?php.re|quire('.|
|00004e10| 2e 2f 2e 2e 2f 6c 69 62 | 2f 43 6c 61 73 73 65 73 |./../lib|/Classes|
|00004e20| 2e 70 68 70 27 29 3b 0a | 24 41 75 74 68 20 3d 20 |.php');.|$Auth = |
|00004e30| 6e 65 77 20 41 75 74 68 | 3b 0a 24 41 75 74 68 2d |new Auth|;.$Auth-|
|00004e40| 3e 6c 6f 67 5f 6f 75 74 | 28 29 3b 0a 68 65 61 64 |>log_out|();.head|
|00004e50| 65 72 28 22 4c 6f 63 61 | 74 69 6f 6e 3a 20 24 41 |er("Loca|tion: $A|
|00004e60| 75 74 68 2d 3e 72 65 66 | 65 72 65 72 22 29 3b 0a |uth->ref|erer");.|
|00004e70| 3f 3e 0a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |?>......|........|
|00004e80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005000| 73 65 73 73 69 6f 6e 61 | 75 74 68 2f 6c 69 62 2f |sessiona|uth/lib/|
|00005010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005060| 00 00 00 00 30 30 34 30 | 37 35 35 00 30 30 30 31 |....0040|755.0001|
|00005070| 37 35 30 00 30 30 30 30 | 31 34 34 00 30 30 30 30 |750.0000|144.0000|
|00005080| 30 30 30 30 30 30 30 00 | 30 37 30 36 33 32 37 31 |0000000.|07063271|
|00005090| 30 32 31 00 30 31 33 34 | 30 34 00 20 35 00 00 00 |021.0134|04. 5...|
|000050a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005100| 00 75 73 74 61 72 20 20 | 00 6e 6f 72 6d 61 6e 00 |.ustar |.norman.|
|00005110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005120| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00005130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005200| 73 65 73 73 69 6f 6e 61 | 75 74 68 2f 6c 69 62 2f |sessiona|uth/lib/|
|00005210| 43 6c 61 73 73 65 73 2e | 70 68 70 00 00 00 00 00 |Classes.|php.....|
|00005220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005260| 00 00 00 00 30 31 30 30 | 36 34 34 00 30 30 30 31 |....0100|644.0001|
|00005270| 37 35 30 00 30 30 30 30 | 31 34 34 00 30 30 30 30 |750.0000|144.0000|
|00005280| 30 30 30 30 32 31 32 00 | 30 37 30 36 33 32 36 37 |0000212.|07063267|
|00005290| 34 33 31 00 30 31 35 35 | 31 34 00 20 30 00 00 00 |431.0155|14. 0...|
|000052a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005300| 00 75 73 74 61 72 20 20 | 00 6e 6f 72 6d 61 6e 00 |.ustar |.norman.|
|00005310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005320| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00005330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005400| 3c 3f 70 68 70 0a 24 63 | 6c 61 73 73 5f 72 6f 6f |<?php.$c|lass_roo|
|00005410| 74 20 3d 20 22 2e 2f 63 | 6c 61 73 73 65 73 22 3b |t = "./c|lasses";|
|00005420| 0a 72 65 71 75 69 72 65 | 28 22 24 63 6c 61 73 73 |.require|("$class|
|00005430| 5f 72 6f 6f 74 2f 42 61 | 73 65 2e 70 68 70 22 29 |_root/Ba|se.php")|
|00005440| 3b 0a 72 65 71 75 69 72 | 65 28 22 24 63 6c 61 73 |;.requir|e("$clas|
|00005450| 73 5f 72 6f 6f 74 2f 53 | 65 73 73 69 6f 6e 2e 70 |s_root/S|ession.p|
|00005460| 68 70 22 29 3b 0a 72 65 | 71 75 69 72 65 28 22 24 |hp");.re|quire("$|
|00005470| 63 6c 61 73 73 5f 72 6f | 6f 74 2f 41 75 74 68 2e |class_ro|ot/Auth.|
|00005480| 70 68 70 22 29 3b 0a 3f | 3e 0a 00 00 00 00 00 00 |php");.?|>.......|
|00005490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005600| 73 65 73 73 69 6f 6e 61 | 75 74 68 2f 6c 69 62 2f |sessiona|uth/lib/|
|00005610| 63 6c 61 73 73 65 73 2f | 00 00 00 00 00 00 00 00 |classes/|........|
|00005620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005660| 00 00 00 00 30 30 34 30 | 37 35 35 00 30 30 30 31 |....0040|755.0001|
|00005670| 37 35 30 00 30 30 30 30 | 31 34 34 00 30 30 30 30 |750.0000|144.0000|
|00005680| 30 30 30 30 30 30 30 00 | 30 37 30 36 33 32 37 31 |0000000.|07063271|
|00005690| 37 31 34 00 30 31 35 30 | 35 32 00 20 35 00 00 00 |714.0150|52. 5...|
|000056a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005700| 00 75 73 74 61 72 20 20 | 00 6e 6f 72 6d 61 6e 00 |.ustar |.norman.|
|00005710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005720| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00005730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005800| 73 65 73 73 69 6f 6e 61 | 75 74 68 2f 6c 69 62 2f |sessiona|uth/lib/|
|00005810| 63 6c 61 73 73 65 73 2f | 41 75 74 68 2e 70 68 70 |classes/|Auth.php|
|00005820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005860| 00 00 00 00 30 31 30 30 | 36 34 34 00 30 30 30 31 |....0100|644.0001|
|00005870| 37 35 30 00 30 30 30 30 | 31 34 34 00 30 30 30 30 |750.0000|144.0000|
|00005880| 30 30 31 30 33 37 34 00 | 30 37 30 36 33 32 37 31 |0010374.|07063271|
|00005890| 33 33 36 00 30 31 36 34 | 36 36 00 20 30 00 00 00 |336.0164|66. 0...|
|000058a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005900| 00 75 73 74 61 72 20 20 | 00 6e 6f 72 6d 61 6e 00 |.ustar |.norman.|
|00005910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005920| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00005930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a00| 3c 3f 70 68 70 0a 0a 2f | 2a 20 41 75 74 68 65 6e |<?php../|* Authen|
|00005a10| 74 69 63 61 74 69 6f 6e | 20 63 6c 61 73 73 20 66 |tication| class f|
|00005a20| 6f 72 20 50 48 50 34 2e | 20 49 6e 20 6f 72 64 65 |or PHP4.| In orde|
|00005a30| 72 20 74 6f 20 6d 61 6b | 65 20 74 68 69 73 20 77 |r to mak|e this w|
|00005a40| 6f 72 6b 2c 0a 20 2a 20 | 79 6f 75 20 77 69 6c 6c |ork,. * |you will|
|00005a50| 20 6e 65 65 64 20 74 68 | 65 20 66 6f 6c 6c 6f 77 | need th|e follow|
|00005a60| 69 6e 67 3a 20 50 48 50 | 20 76 65 72 73 69 6f 6e |ing: PHP| version|
|00005a70| 20 34 2c 20 61 6e 64 20 | 61 20 4d 79 53 51 4c 0a | 4, and |a MySQL.|
|00005a80| 20 2a 20 74 61 62 6c 65 | 20 77 69 74 68 20 79 6f | * table| with yo|
|00005a90| 75 72 20 61 63 63 6f 75 | 6e 74 20 69 6e 66 6f 72 |ur accou|nt infor|
|00005aa0| 6d 61 74 69 6f 6e 2e 20 | 49 6e 20 61 64 64 69 74 |mation. |In addit|
|00005ab0| 69 6f 6e 2c 20 79 6f 75 | 20 6e 65 65 64 20 74 68 |ion, you| need th|
|00005ac0| 65 0a 20 2a 20 66 6f 6c | 6c 6f 77 69 6e 67 20 66 |e. * fol|lowing f|
|00005ad0| 69 6c 65 73 20 66 6f 72 | 6d 20 74 68 69 73 20 70 |iles for|m this p|
|00005ae0| 61 63 6b 61 67 65 3a 20 | 0a 20 2a 09 31 29 20 42 |ackage: |. *.1) B|
|00005af0| 61 73 65 2e 70 68 70 20 | 2d 20 74 68 65 20 62 61 |ase.php |- the ba|
|00005b00| 73 65 20 63 6c 61 73 73 | 20 66 69 6c 65 2e 20 54 |se class| file. T|
|00005b10| 68 69 73 20 68 61 73 20 | 74 68 65 20 4d 79 53 51 |his has |the MySQ|
|00005b20| 4c 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 20 70 61 72 |L connec|tion par|
|00005b30| 61 6d 61 74 65 72 73 2e | 0a 20 2a 09 32 29 20 4d |amaters.|. *.2) M|
|00005b40| 44 35 2e 6a 73 73 20 2d | 20 61 20 6a 61 76 61 63 |D5.jss -| a javac|
|00005b50| 72 69 70 74 20 70 72 6f | 67 72 61 6d 20 74 68 61 |ript pro|gram tha|
|00005b60| 74 20 64 6f 65 73 20 4d | 44 35 20 65 6e 63 72 79 |t does M|D5 encry|
|00005b70| 70 74 69 6f 6e 2e 20 54 | 68 69 73 0a 20 2a 20 20 |ption. T|his. * |
|00005b80| 20 20 69 73 20 74 68 65 | 20 73 61 6d 65 20 70 72 | is the| same pr|
|00005b90| 6f 67 72 61 6d 20 75 73 | 65 64 20 62 79 20 50 48 |ogram us|ed by PH|
|00005ba0| 50 4c 69 62 20 28 68 74 | 74 70 3a 2f 2f 70 68 70 |PLib (ht|tp://php|
|00005bb0| 6c 69 62 2e 6e 65 74 75 | 73 65 2e 64 65 29 0a 20 |lib.netu|se.de). |
|00005bc0| 2a 09 09 49 20 68 61 76 | 65 20 61 6c 73 6f 20 62 |*..I hav|e also b|
|00005bd0| 6c 61 74 65 6e 74 6c 79 | 20 73 74 6f 6c 65 6e 20 |latently| stolen |
|00005be0| 73 6f 6d 65 20 6f 66 20 | 74 68 65 69 72 20 63 6f |some of |their co|
|00005bf0| 64 65 20 61 6e 64 20 75 | 73 65 64 20 69 74 20 77 |de and u|sed it w|
|00005c00| 68 65 72 65 20 6e 6f 74 | 65 64 0a 20 2a 09 09 6f |here not|ed. *..o|
|00005c10| 6e 20 74 68 65 20 6c 6f | 67 69 6e 20 66 6f 72 6d |n the lo|gin form|
|00005c20| 20 62 65 63 61 75 73 65 | 20 69 74 20 69 73 20 73 | because| it is s|
|00005c30| 6f 20 64 61 72 6e 20 63 | 6f 6f 6c 2e 20 0a 20 2a |o darn c|ool. . *|
|00005c40| 20 33 29 20 6c 6f 67 69 | 6e 66 6f 72 6d 2e 70 68 | 3) logi|nform.ph|
|00005c50| 70 20 2d 20 61 6e 20 65 | 78 61 6d 70 6c 65 20 6c |p - an e|xample l|
|00005c60| 6f 67 69 6e 20 66 6f 72 | 6d 20 70 61 67 65 2e 20 |ogin for|m page. |
|00005c70| 0a 20 2a 20 34 29 20 6c | 6f 67 69 6e 2e 70 68 70 |. * 4) l|ogin.php|
|00005c80| 20 2d 20 74 68 65 20 73 | 63 72 69 70 74 20 74 68 | - the s|cript th|
|00005c90| 61 74 20 64 6f 65 73 20 | 74 68 65 20 6c 6f 67 67 |at does |the logg|
|00005ca0| 69 6e 67 2d 69 6e 2e 0a | 20 2a 20 35 29 20 53 65 |ing-in..| * 5) Se|
|00005cb0| 73 73 69 6f 6e 2e 70 68 | 70 20 2d 20 61 20 73 69 |ssion.ph|p - a si|
|00005cc0| 6d 70 6c 65 20 73 65 73 | 73 69 6f 6e 20 63 6c 61 |mple ses|sion cla|
|00005cd0| 73 73 0a 20 2a 0a 20 2a | 20 49 66 20 61 6e 79 74 |ss. *. *| If anyt|
|00005ce0| 68 69 6e 67 20 69 73 20 | 6d 69 73 73 69 6e 67 20 |hing is |missing |
|00005cf0| 79 6f 75 20 63 61 6e 20 | 64 6f 77 6e 6c 6f 61 64 |you can |download|
|00005d00| 20 69 74 20 61 74 20 74 | 68 65 20 66 6f 6c 6c 6f | it at t|he follo|
|00005d10| 77 69 6e 67 20 55 52 4c | 3a 0a 20 2a 0a 20 2a 20 |wing URL|:. *. * |
|00005d20| 20 20 68 74 74 70 3a 2f | 2f 77 77 77 2e 6a 75 6e | http:/|/www.jun|
|00005d30| 6b 6f 6e 6c 69 6e 65 2e | 63 6f 6d 2f 6e 6f 72 6d |konline.|com/norm|
|00005d40| 61 6e 2f 0a 20 2a 0a 20 | 2a 20 49 20 6b 6e 6f 77 |an/. *. |* I know|
|00005d50| 20 6d 79 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f | my docu|mentatio|
|00005d60| 6e 20 69 73 20 73 70 6f | 74 74 79 20 68 65 72 65 |n is spo|tty here|
|00005d70| 2c 20 61 6e 64 20 66 6f | 72 20 74 68 61 74 20 49 |, and fo|r that I|
|00005d80| 20 61 70 6f 6c 6f 67 69 | 7a 65 2e 20 49 0a 20 2a | apologi|ze. I. *|
|00005d90| 20 61 6d 20 6d 61 6b 69 | 6e 67 20 74 68 69 73 20 | am maki|ng this |
|00005da0| 70 75 62 6c 69 63 20 6a | 75 73 74 20 73 6f 20 79 |public j|ust so y|
|00005db0| 6f 75 20 63 61 6e 20 67 | 65 74 20 61 6e 20 69 64 |ou can g|et an id|
|00005dc0| 65 61 20 6f 66 20 68 6f | 77 20 74 6f 20 67 65 74 |ea of ho|w to get|
|00005dd0| 20 0a 20 2a 20 73 65 73 | 73 69 6f 6e 69 6e 67 20 | . * ses|sioning |
|00005de0| 61 6e 64 20 61 75 74 68 | 65 6e 74 69 63 61 74 69 |and auth|enticati|
|00005df0| 6f 6e 20 77 6f 72 6b 69 | 6e 67 20 69 6e 20 50 48 |on worki|ng in PH|
|00005e00| 50 20 34 2e 20 45 6d 61 | 69 6c 20 6d 65 20 77 69 |P 4. Ema|il me wi|
|00005e10| 74 68 20 61 6e 79 20 0a | 20 2a 20 63 6f 6d 70 6c |th any .| * compl|
|00005e20| 61 69 6e 74 73 20 6f 72 | 20 71 75 65 73 74 69 6f |aints or| questio|
|00005e30| 6e 73 2e 0a 2a 2f 0a 0a | 63 6c 61 73 73 20 41 75 |ns..*/..|class Au|
|00005e40| 74 68 20 20 65 78 74 65 | 6e 64 73 20 42 61 73 65 |th exte|nds Base|
|00005e50| 20 7b 0a 0a 09 76 61 72 | 20 24 61 63 63 74 5f 74 | {...var| $acct_t|
|00005e60| 61 62 6c 65 20 3d 20 27 | 6d 65 6d 62 65 72 73 27 |able = '|members'|
|00005e70| 3b 20 2f 2f 20 74 68 65 | 20 74 61 62 6c 65 20 79 |; // the| table y|
|00005e80| 6f 75 72 20 61 63 63 6f | 75 6e 74 73 20 61 72 65 |our acco|unts are|
|00005e90| 20 69 6e 0a 09 76 61 72 | 20 24 75 73 65 72 6e 61 | in..var| $userna|
|00005ea0| 6d 65 5f 63 6f 6c 20 3d | 20 27 75 73 65 72 6e 61 |me_col =| 'userna|
|00005eb0| 6d 65 27 3b 20 2f 2f 20 | 74 68 65 20 6e 61 6d 65 |me'; // |the name|
|00005ec0| 20 6f 66 20 74 68 65 20 | 75 73 65 72 6e 61 6d 65 | of the |username|
|00005ed0| 20 63 6f 6c 75 6d 6e 0a | 09 76 61 72 20 24 70 61 | column.|.var $pa|
|00005ee0| 73 73 5f 63 6f 6c 20 3d | 20 27 70 61 73 73 77 64 |ss_col =| 'passwd|
|00005ef0| 27 3b 20 2f 2f 20 74 68 | 65 20 6e 61 6d 65 20 6f |'; // th|e name o|
|00005f00| 66 20 74 68 65 20 70 61 | 73 73 77 6f 72 64 20 63 |f the pa|ssword c|
|00005f10| 6f 6c 75 6d 6e 0a 09 76 | 61 72 20 24 73 74 61 74 |olumn..v|ar $stat|
|00005f20| 75 73 5f 63 6f 6c 20 3d | 20 27 73 74 61 74 75 73 |us_col =| 'status|
|00005f30| 27 3b 20 2f 2f 20 6e 61 | 6d 65 20 6f 66 20 74 68 |'; // na|me of th|
|00005f40| 65 20 61 63 63 6f 75 6e | 74 20 73 74 61 74 75 73 |e accoun|t status|
|00005f50| 20 63 6f 6c 75 6d 6e 0a | 09 76 61 72 20 24 75 73 | column.|.var $us|
|00005f60| 65 5f 70 65 72 6d 69 73 | 73 69 6f 6e 73 20 3d 20 |e_permis|sions = |
|00005f70| 46 41 4c 53 45 3b 20 2f | 2f 20 69 66 20 74 72 75 |FALSE; /|/ if tru|
|00005f80| 65 20 75 73 65 20 70 65 | 72 6d 69 73 73 69 6f 6e |e use pe|rmission|
|00005f90| 73 0a 0a 09 66 75 6e 63 | 74 69 6f 6e 20 41 75 74 |s...func|tion Aut|
|00005fa0| 68 28 29 20 7b 0a 09 09 | 67 6c 6f 62 61 6c 20 24 |h() {...|global $|
|00005fb0| 48 54 54 50 5f 52 45 46 | 45 52 45 52 3b 0a 09 09 |HTTP_REF|ERER;...|
|00005fc0| 67 6c 6f 62 61 6c 20 24 | 48 54 54 50 5f 50 4f 53 |global $|HTTP_POS|
|00005fd0| 54 5f 56 41 52 53 3b 0a | 09 09 69 66 20 28 21 24 |T_VARS;.|..if (!$|
|00005fe0| 48 54 54 50 5f 50 4f 53 | 54 5f 56 41 52 53 5b 72 |HTTP_POS|T_VARS[r|
|00005ff0| 65 64 69 72 65 63 74 5d | 29 20 7b 0a 09 09 09 24 |edirect]|) {....$|
|00006000| 74 68 69 73 2d 3e 72 65 | 64 69 72 65 63 74 20 3d |this->re|direct =|
|00006010| 20 24 48 54 54 50 5f 52 | 45 46 45 52 45 52 3b 0a | $HTTP_R|EFERER;.|
|00006020| 09 09 7d 0a 09 09 65 6c | 73 65 20 7b 0a 09 09 09 |..}...el|se {....|
|00006030| 24 74 68 69 73 2d 3e 72 | 65 64 69 72 65 63 74 20 |$this->r|edirect |
|00006040| 3d 20 24 48 54 54 50 5f | 50 4f 53 54 5f 56 41 52 |= $HTTP_|POST_VAR|
|00006050| 53 5b 72 65 64 69 72 65 | 63 74 5d 3b 0a 09 09 7d |S[redire|ct];...}|
|00006060| 0a 09 7d 0a 09 20 09 0a | 09 66 75 6e 63 74 69 6f |..}.. ..|.functio|
|00006070| 6e 20 72 65 71 75 69 72 | 65 5f 61 75 74 68 28 24 |n requir|e_auth($|
|00006080| 6c 65 76 65 6c 3d 22 22 | 29 20 7b 0a 09 09 0a 09 |level=""|) {.....|
|00006090| 09 2f 2a 20 6c 65 76 65 | 6c 20 63 61 6e 20 62 65 |./* leve|l can be|
|000060a0| 20 61 6e 79 20 73 69 6e | 67 6c 65 20 70 65 72 6d | any sin|gle perm|
|000060b0| 69 73 73 69 6f 6e 20 22 | 6c 65 76 65 6c 22 20 79 |ission "|level" y|
|000060c0| 6f 75 20 6d 61 6b 65 20 | 75 70 2e 0a 09 09 20 2a |ou make |up.... *|
|000060d0| 20 70 65 72 6d 69 73 73 | 69 6f 6e 20 6c 65 76 65 | permiss|ion leve|
|000060e0| 6c 73 20 63 61 6e 20 68 | 61 76 65 20 61 6e 79 20 |ls can h|ave any |
|000060f0| 6c 61 62 65 6c 2c 20 62 | 75 74 20 6d 75 73 74 0a |label, b|ut must.|
|00006100| 09 09 20 2a 20 62 65 20 | 72 65 63 6f 72 64 65 64 |.. * be |recorded|
|00006110| 20 69 6e 20 4d 79 53 51 | 4c 20 61 73 20 22 59 22 | in MySQ|L as "Y"|
|00006120| 20 6f 72 20 22 4e 22 2e | 20 46 6f 72 20 65 78 61 | or "N".| For exa|
|00006130| 6d 70 6c 65 2c 20 61 20 | 6c 65 76 65 6c 0a 09 09 |mple, a |level...|
|00006140| 20 2a 20 6d 69 67 68 74 | 20 62 65 20 22 61 64 6d | * might| be "adm|
|00006150| 69 6e 22 20 6f 72 20 22 | 75 73 65 72 2c 22 20 65 |in" or "|user," e|
|00006160| 74 63 2e 20 49 66 20 6c | 65 76 65 6c 20 69 73 20 |tc. If l|evel is |
|00006170| 75 6e 73 70 65 63 69 66 | 69 65 64 2c 0a 09 09 20 |unspecif|ied,... |
|00006180| 2a 20 70 65 72 6d 69 73 | 73 69 6f 6e 73 20 61 72 |* permis|sions ar|
|00006190| 65 20 6e 6f 74 20 63 68 | 65 63 6b 65 64 20 61 6e |e not ch|ecked an|
|000061a0| 64 20 61 6e 79 20 61 63 | 74 69 76 65 20 61 63 63 |d any ac|tive acc|
|000061b0| 6f 75 6e 74 20 63 61 6e | 20 61 63 63 65 73 73 0a |ount can| access.|
|000061c0| 09 09 20 2a 20 74 68 65 | 20 70 61 67 65 2e 20 0a |.. * the| page. .|
|000061d0| 09 09 2a 2f 0a 09 09 0a | 09 09 67 6c 6f 62 61 6c |..*/....|..global|
|000061e0| 20 24 6c 6f 67 69 6e 3b | 0a 09 09 67 6c 6f 62 61 | $login;|...globa|
|000061f0| 6c 20 24 70 65 72 6d 69 | 73 73 69 6f 6e 73 3b 0a |l $permi|ssions;.|
|00006200| 09 09 67 6c 6f 62 61 6c | 20 24 61 63 63 74 5f 6e |..global| $acct_n|
|00006210| 61 6d 65 3b 0a 09 09 0a | 09 09 69 66 20 28 24 61 |ame;....|..if ($a|
|00006220| 63 63 74 5f 6e 61 6d 65 | 29 20 7b 0a 09 09 09 24 |cct_name|) {....$|
|00006230| 74 68 69 73 2d 3e 61 75 | 74 68 65 6e 74 69 63 61 |this->au|thentica|
|00006240| 74 65 28 29 3b 0a 09 09 | 7d 0a 09 09 0a 09 09 65 |te();...|}......e|
|00006250| 6c 73 65 69 66 20 28 21 | 24 6c 6f 67 69 6e 29 20 |lseif (!|$login) |
|00006260| 7b 0a 09 09 09 73 72 61 | 6e 64 28 74 69 6d 65 28 |{....sra|nd(time(|
|00006270| 29 29 3b 0a 09 09 09 24 | 74 68 69 73 2d 3e 63 68 |));....$|this->ch|
|00006280| 61 6c 6c 65 6e 67 65 20 | 3d 20 6d 64 35 28 74 69 |allenge |= md5(ti|
|00006290| 6d 65 28 29 20 2b 20 72 | 61 6e 64 28 30 2c 31 30 |me() + r|and(0,10|
|000062a0| 30 30 30 29 29 3b 0a 09 | 09 09 24 74 68 69 73 2d |000));..|..$this-|
|000062b0| 3e 73 68 6f 77 5f 6c 6f | 67 69 6e 5f 66 6f 72 6d |>show_lo|gin_form|
|000062c0| 28 29 3b 0a 09 09 7d 0a | 09 09 0a 09 09 65 6c 73 |();...}.|.....els|
|000062d0| 65 69 66 20 28 24 6c 65 | 76 65 6c 20 26 26 20 24 |eif ($le|vel && $|
|000062e0| 70 65 72 6d 69 73 73 69 | 6f 6e 73 5b 24 6c 65 76 |permissi|ons[$lev|
|000062f0| 65 6c 5d 20 21 3d 20 22 | 59 22 29 20 7b 0a 09 09 |el] != "|Y") {...|
|00006300| 09 70 72 69 6e 74 20 22 | 49 6e 73 75 66 66 69 63 |.print "|Insuffic|
|00006310| 69 65 6e 74 20 70 65 72 | 6d 69 73 69 6f 6e 73 21 |ient per|misions!|
|00006320| 5c 6e 22 3b 0a 09 09 09 | 65 78 69 74 3b 0a 09 09 |\n";....|exit;...|
|00006330| 7d 0a 09 09 0a 09 09 65 | 6c 73 65 69 66 20 28 24 |}......e|lseif ($|
|00006340| 6c 65 76 65 6c 20 26 26 | 20 21 24 70 65 72 6d 69 |level &&| !$permi|
|00006350| 73 73 69 6f 6e 73 29 20 | 7b 0a 09 09 09 24 74 68 |ssions) |{....$th|
|00006360| 69 73 2d 3e 73 68 6f 77 | 5f 6c 6f 67 69 6e 5f 66 |is->show|_login_f|
|00006370| 6f 72 6d 28 22 66 61 69 | 6c 65 64 22 29 3b 0a 09 |orm("fai|led");..|
|00006380| 09 09 65 78 69 74 3b 0a | 09 09 7d 0a 09 7d 0a 09 |..exit;.|..}..}..|
|00006390| 0a 09 66 75 6e 63 74 69 | 6f 6e 20 61 75 74 68 65 |..functi|on authe|
|000063a0| 6e 74 69 63 61 74 65 28 | 29 20 7b 0a 09 09 0a 09 |nticate(|) {.....|
|000063b0| 09 2f 2f 20 54 68 65 73 | 65 20 61 72 65 20 74 68 |.// Thes|e are th|
|000063c0| 65 20 6e 61 6d 65 73 20 | 6f 66 20 74 68 65 20 76 |e names |of the v|
|000063d0| 61 72 73 20 66 72 6f 6d | 20 74 68 65 20 6c 6f 67 |ars from| the log|
|000063e0| 69 6e 20 66 6f 72 6d 2c | 0a 09 09 2f 2f 20 73 6f |in form,|...// so|
|000063f0| 20 6d 61 6b 65 20 73 75 | 72 65 20 79 6f 75 20 75 | make su|re you u|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.