加入收藏 | 设为首页 | RSS
您当前的位置:首页 > 建站教程 > 网页技巧

如何实现 DES 算法(全)

时间:2012-04-30 13:14:40  来源:  作者:虾谷

;上面是介绍,我就不翻了。 ;) 


Here's how to do it, step by step: 

1 Process the key. 
;生成密钥 

1.1 Get a 64-bit key from the user. (Every 8th bit is considered a 
parity bit. For a key to have correct parity, each byte should contain 
an odd number of "1" bits.) 
;从用户处得到一个64位的密钥。(每8位一组,每组的第8位是校验位。如果校验 
正确,每个字节应该有一个为1的 

1.2 Calculate the key schedule. 
;计算密钥表 

1.2.1 Perform the following permutation on the 64-bit key. (The parity 
bits are discarded, reducing the key to 56 bits. Bit 1 of the permuted 
block is bit 57 of the original key, bit 2 is bit 49, and so on with bit 
56 being bit 4 of the original key.) 
;对64位的密钥进行如下的置换。(去掉校验位,密钥的实际长度是56位。置换后的 
来顶一下
返回首页
返回首页
推荐资讯
10步征服web2.0链轮第四步,决定链轮模式
10步征服web2.0链轮第
10步征服web2.0链轮第三步,消除“电子足迹”
10步征服web2.0链轮第
10步征服web2.0链轮第一步,理解链轮的概念
10步征服web2.0链轮第
小贺店铺
小贺店铺
相关文章
    无相关信息
栏目更新
栏目热门