-
-
[已解决]请教各位老师这个算法的逆算法。
-
发表于:
2009-12-26 10:22
6863
-
逆出来一个算法,我对密码学一无所知,问一下各位老师这个算法是什么算法是否可逆。
算法很简单,4个字符ASCII码值为abcd,经过这个算法后算出3个字符。
首先以abcd的值为索引值查表,表如下(全为16进制)
005A1A50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
005A1A60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
005A1A70 00 00 00 00 00 00 00 00 00 00 00 3E 00 00 00 3F ...........>...?
005A1A80 34 35 36 37 38 39 3A 3B 3C 3D 00 00 00 00 00 00 456789:;<=......
005A1A90 00 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E ......
005A1AA0 0F 10 11 12 13 14 15 16 17 18 19 00 00 00 00 00 .....
005A1AB0 00 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 . !"#$%&'(
005A1AC0 29 2A 2B 2C 2D 2E 2F 30 31 32 33 00 00 00 00 00 )*+,-./0123.....
005A1AD0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
005A1AE0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
005A1AF0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
005A1B00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...............
假设查表得到与abcd相对应的4个数为wxyz。
则eax=w+x*2^6+y*2^12+z*2^18(2^12表示2的12次方)
最后得到的3个字符就是eax的前3个字节。
不明白这是什么算法,想了半天也没想出逆算法。
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课