首页
社区
课程
招聘
[旧帖] [求助]谁有DES加密算法的源码,最好有C/C++以及汇编语言版? 0.00雪花
发表于: 2008-7-18 13:30 4559

[旧帖] [求助]谁有DES加密算法的源码,最好有C/C++以及汇编语言版? 0.00雪花

2008-7-18 13:30
4559
谁有DES加密算法的源码,最好有C/C++以及汇编语言版?

尤其需要汇编语言版(有注解(更是万分感激))!

[培训]《安卓高级研修班(网课)》月薪三万计划,掌握调试、分析还原ollvm、vmp的方法,定制art虚拟机自动化脱壳的方法

收藏
免费 0
支持
分享
最新回复 (5)
雪    币: 206
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
顶一下,再顶一下
2008-7-18 22:56
0
雪    币: 293
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
这种东西网上google,baidu一下一大堆吧。
http://www.efgh.com/software/des.htm
2008-7-19 09:14
0
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
我要的是解密。谁有呢?
2008-7-19 21:59
0
雪    币: 206
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
谁有DES加密算法的源码,最好有C/C++以及汇编语言版?

尤其需要汇编语言版(有注解(更是万分感激))!
2008-7-20 04:02
0
雪    币: 293
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
6
这个引自上面的链接:

/*-----------------------------------------------------------------------------
This function performs a DES encryption or decryption on a single 64-bit block
of data, using the specified 56-bit key. The data and key are packed one bit
per byte. Every element of data[] must be either 0 or 1. The results
will be highly anomalous if this is not the case.

The encrypted or decrypted data is returned to the data[] buffer.
-----------------------------------------------------------------------------*/

void des::encrypt_decrypt(unsigned char data[DES_DATA_SIZE],
  int /* boolean */ encrypt)

还有这个引自wikipedia:

Before the main rounds, the block is divided into two 32-bit halves and processed alternately; this criss-crossing is known as the Feistel scheme. The Feistel structure ensures that decryption and encryption are very similar processes — the only difference is that the subkeys are applied in the reverse order when decrypting. The rest of the algorithm is identical.

上面那个链接不是有解密吗?我觉得与其在这里要代码,还不如自己多看看书,了解一下DES加密算法的原理有意义,知道了原理,看别人的代码也容易一些,不管什么自己想改用什么语言编,也容易很多了。可惜国内上不了wikipedia,那里有很多东西的,一定受益匪浅。

http://en.wikipedia.org/wiki/Data_Encryption_Standard
2008-7-20 08:40
0
游客
登录 | 注册 方可回帖
返回
//