-
-
[求助]关于4个字节的算法
-
发表于:
2009-7-17 14:53
3724
-
qiaoguo在新人交流投稿发了这个问题,无法解决,征得其本人同意,现转发。
原帖地址:
http://bbs.pediy.com/showthread.php?t=93576
原作者:qiaoguo
原文:
最近 搞了一组数据,搞的头昏脑胀。如下:
00 00 00 00 80 19 C5 20
00 00 00 01 8E 61 B9 CA
00 00 00 02 15 18 F2 CD
00 00 00 03 76 FD 5E 6F
00 00 00 04 44 2E BF F0
00 00 00 05 33 41 B8 1D
00 00 00 06 5A 2E 6A 31
00 00 00 07 A2 7A DE 49
00 00 00 08 52 6E 43 34
00 00 00 09 5a 1c 1a 51
00 00 00 0A 30 71 04 77
00 00 00 0B 87 23 f6 e1
00 00 00 0C a3 0e e6 9b
00 00 00 0D c2 fe 90 3c
00 00 00 0E 6a 57 ea f7
00 00 00 0F 05 02 fd 61
00 00 00 10 90 3b 04 28
00 00 00 11 ce 5e 90 c8
00 00 00 12 c8 98 8d be
00 00 00 13 e3 43 0e 76
00 00 00 14 27 2d 7a 59
00 00 00 15 ec 42 e3 96
00 00 00 16 1b bc 3e e2
00 00 00 17 ef 08 20 5e
00 00 00 18 b0 c8 86 b4
00 00 00 19 98 42 ca 32
00 00 00 1A 44 22 ae fa
00 00 00 1B 5e cc d8 b2
00 00 00 1C e8 7f d7 b6
00 00 00 1D b0 c2 a2 9c
00 00 00 1E 0c f7 bf 93
00 00 00 1F 5e e4 02 82
00 00 00 20 b1 25 a1 2a
00 00 00 21 e2 f3 35 43
00 00 00 22 48 39 34 5b
00 00 00 23 b6 0f 12 c3
00 00 00 24 78 0a b8 98
00 00 00 25 90 82 50 0c
00 00 00 26 2f 99 79 42
00 00 00 27 fa fd e2 ba
00 00 00 28 e4 18 ca 4c
00 00 00 29 d4 fe a8 8c
00 00 00 2A cd 95 1b 90
00 00 00 2B 19 3d fe 4b
00 00 00 2C a9 2e 55 3d
00 00 00 2D 27 b6 7b 50
00 00 00 2E 3b bf 7f 4e
00 00 00 2F 93 5f 8e db
00 00 00 30 65 af 8a 55
00 00 00 31 9b 31 6b 65
00 00 00 32 1a 09 96 58
00 00 00 33 bb 0d 3f c8
00 00 00 34 fc 30 91 51
00 00 00 35 8f c8 14 2b
00 00 00 36 c0 25 6d d0
00 00 00 37 ea e5 39 e7
00 00 00 38 1b 71 9b 0c
00 00 00 39 df ba 48 bc
00 00 00 3A ab e7 72 ce
00 00 00 3B 3d af 95 60
00 00 00 3C 2f db fb f5
00 00 00 3D 57 0b 44 89
00 00 00 3E 62 ca fe c1
00 00 00 3F 11 8a 73 91
00 00 00 40 21 99 7b 11
00 00 00 41 ea 35 cd a0
00 00 00 42 7d 17 f3 33
00 00 00 43 43 7a 7e 84
00 00 00 44 4b d9 45 ce
00 00 00 45 1c a7 27 86
00 00 00 46 a4 df 25 82
00 00 00 47 0f e1 16 54
00 00 00 48 78 20 e7 48
00 00 00 49 bf 2b 9c 1f
00 00 00 4A 25 24 3b 77
00 00 00 4B c8 21 5d b6
00 00 00 4C 87 0d 1b 32
00 00 00 4D f7 ac fb 88
00 00 00 4E d6 e1 f1 97
00 00 00 4F f1 a4 31 05
00 00 00 50 a3 3f 41 b5
00 00 00 51 a4 1d 6d 0d
00 00 00 52 a1 29 15 f5
00 00 00 53 92 c1 a5 d7
00 00 00 54 4f 02 be 95
00 00 00 55 9e b1 af 34
00 00 00 56 cd da 49 aa
00 00 00 57 8b 71 a9 cd
00 00 00 58 a0 71 b3 28
00 00 00 59 b9 80 66 bd
00 00 00 5A e6 0c 9e d6
00 00 00 5B d9 6e e7 9d
00 00 00 5C d3 54 2e 68
00 00 00 5D 8e 4d d1 4b
00 00 00 5E cf 37 ca 81
00 00 00 5F 1e bc 50 21
00 00 00 60 04 13 5e 91
00 00 00 61 c7 7f 57 f6
00 00 00 62 f3 9f 60 01
00 00 00 63 cf 9b 0b 3c
00 00 00 64 aa 07 b5 b8
00 00 00 65 a0 74 3f 02
00 00 00 66 78 d2 f0 c8
00 00 00 67 a9 d7 c1 ec
00 00 00 68 eb a5 ad 8c
00 00 00 69 a4 4b 35 b9
00 00 00 6A ea bf 07 11
00 00 00 6B f1 ac 13 5c
00 00 00 6C 6b e9 f6 53
00 00 00 6D e5 5f ee 8f
00 00 00 6E b2 12 45 8f
00 00 00 6F ad 6f 9d fd
00 00 00 70 89 1e ec de
00 00 00 71 74 f2 32 03
00 00 00 72 3b c3 39 03
00 00 00 73 77 c9 f8 6b
00 00 00 74 67 e7 1b ce
00 00 00 75 7e 4b c2 91
00 00 00 76 77 92 a0 59
00 00 00 77 e5 73 1f 29
00 00 00 78 fc f6 d7 94
00 00 00 79 ad c3 81 dd
00 00 00 7A d5 74 23 bf
00 00 00 7B 44 df 34 0c
00 00 00 7C f2 9b 11 fb
00 00 00 7D 8c ec a7 b4
00 00 00 7E 69 5f e9 b7
00 00 00 7F b3 e5 45 71
00 00 00 80 88 ee 38 99
00 00 00 81 3a 16 bf 72
00 00 00 82 31 04 36 ac
00 00 00 83 58 73 b5 47
00 00 00 84 32 61 86 01
00 00 00 85 37 0b a1 21
00 00 00 86 98 39 dc f6
00 00 00 87 ae 76 72 b8
00 00 00 88 ca 6b ec 83
00 00 00 89 26 62 4d 92
00 00 00 8A dd 19 26 66
00 00 00 8B ce 06 9f 59
00 00 00 8C e5 e3 2f 70
00 00 00 8D 2f 03 47 e7
00 00 00 8E 43 82 19 1a
00 00 00 8F c6 85 63 f4
00 00 00 90 a5 29 d1 cc
00 00 00 91 9b 72 0e 16
00 00 00 92 94 29 47 13
00 00 00 93 d0 be 6f 29
00 00 00 94 00 ff 09 bd
00 00 00 95 11 09 94 05
00 00 00 96 86 35 cf c7
00 00 00 97 cb c1 38 7d
00 00 00 98 99 0d 7a 1c
00 00 00 99 3b ec 17 22
00 00 00 9A 9b c1 72 1a
00 00 00 9B 3e 34 00 7e
00 00 00 9C c7 22 a6 b3
00 00 00 9D 1d 88 69 75
00 00 00 9E 92 e7 96 e0
00 00 00 9F 2f 78 a0 27
00 00 00 A0 2a 14 bc 38
00 00 00 A1 0e 30 3a c0
00 00 00 A2 c3 a7 47 f5
00 00 00 A3 5e b5 2c 25
00 00 00 A4 99 36 3e ad
00 00 00 A5 aa 3c a0 3b
00 00 00 A6 ba 22 66 31
00 00 00 A7 49 fd 34 69
00 00 00 A8 ea 98 e4 d5
00 00 00 A9 43 10 ff 9e
00 00 00 AA 62 21 a2 e2
00 00 00 AB 0c 45 08 d7
00 00 00 AC 82 c6 0e 00
00 00 00 AD a4 e1 3f ea
00 00 00 AE f4 7a d4 16
00 00 00 AF e4 65 85 32
00 00 00 B0 75 77 f0 9f
00 00 00 B1 9a ef e0 45
00 00 00 B2 8d 6a f7 2c
00 00 00 B3 2c 98 e5 ce
00 00 00 B4 97 1c 52 8c
00 00 00 B5 8e 39 95 b3
00 00 00 B6 b7 eb df 71
00 00 00 B7 68 65 60 fd
00 00 00 B8 29 65 8c 60
00 00 00 B9 3e f7 5e d1
00 00 00 BA d2 45 64 23
00 00 00 BB 75 a7 d5 6b
00 00 00 BC 86 d6 80 c1
00 00 00 BD 49 70 01 1d
00 00 00 BE 9c 26 5c bf
00 00 00 BF fd 42 c5 e1
00 00 00 C0 c4 27 3e 87
00 00 00 C1 d9 43 3a 08
00 00 00 C2 50 e9 e1 58
00 00 00 C3 4e 35 40 74
00 00 00 C4 39 03 75 6e
00 00 00 C5 c1 01 ad ff
00 00 00 C6 5d 2c 37 a5
00 00 00 C7 98 5b 55 ff
00 00 00 C8 ba ad 28 50
按一定的算法,从左边的4个字节转换到右边的四个字节,我本不是专业搞这些的,写的软件要迈过这一步骤,如果过不去,接下来的功能就难以实现,想找管理员帮忙又联系不上,故发新人贴进行讨论,希望有高人指点一二,小弟在这里多谢了!
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!