资源简介
基于Qt编写的DES加密算法,博客中有详细解释。通过改写他人的代码,加入了加密文件等功能。

代码片段和文件信息
#include
#include
#include
#include “des.h“
// initial permutation IP
const int DES::IP_Table[] =
{
58 50 42 34 26 18 10 2 60 52 44 36 28 20 12 4
62 54 46 38 30 22 14 6 64 56 48 40 32 24 16 8
57 49 41 33 25 17 9 1 59 51 43 35 27 19 11 3
61 53 45 37 29 21 13 5 63 55 47 39 31 23 15 7
};
// final permutation IP^-1
const int DES::IPR_Table[] =
{
40 8 48 16 56 24 64 32 39 7 47 15 55 23 63 31
38 6 46 14 54 22 62 30 37 5 45 13 53 21 61 29
36 4 44 12 52 20 60 28 35 3 43 11 51 19 59 27
34 2 42 10 50 18 58 26 33 1 41 9 49 17 57 25
};
// Expand array
const int DES::E_Table[48] =
{
3212345
456789
8910111213
121314151617
161718192021
202122232425
242526272829
28293031321
};
// P-Transform
const int DES::P_Table[32] =
{
1672021
29122817
1152326
5183110
282414
322739
1913306
2211425
};
// PC1 in keyBuild
const int DES::PC1_Table[56] =
{
5749413325179
1585042342618
1025951433527
1911360524436
63554739313315
7625446383022
1466153453729
211352820124
};
// PC2 in keyBuild
const int DES::PC2_Table[48] =
{
1417112415
3281562110
2319124268
1672720132
415231374755
304051453348
444939563453
464250362932
};
// number left rotations of pc1
const int DES::LOOP_Table[16] =
{
1122222212222221
};
//S-Box
const int DES::S_Box[8][4][16] =
{
{
{1441312151183106125907}
{0157414213110612119538}
{4114813621115129731050}
{1512824917511314100613}
}
{
{1518146113497213120510}
{3134715281412011069115}
{0147111041315812693215}
{1381013154211671205149}
}
{
{1009146315511312711428}
{1370934610285141211151}
{1364981530111212510147}
{1101306987415143115212}
}
{
{7131430691012851112415}
{1381156150347212110149}
{1069012117131513145284}
{3150610113894511127214}
}
{
{2124171011685315130149}
{1411212471315015103986}
{4211110137815912563014}
{1181271142136150910453}
}
{
{1211015926801334147511}
{10154271295611
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-10-01 10:05 DES\
文件 14876 2012-08-18 15:00 DES\des.cpp
文件 2712 2012-08-18 14:55 DES\des.h
文件 70 2012-08-14 14:42 DES\DES.pro
文件 18998 2012-10-01 10:05 DES\DES.pro.user
文件 2000 2012-08-18 15:09 DES\main.cpp
- 上一篇:calloc和malloc的区别
- 下一篇:图片分页展示
相关资源
- Remote Desktop Organizer v1.4.7 支持win10
- 3des加解密_C 实现
- RSA AES DES ECC加密算法源码
- 密码学课程设计:DES加密解密算法的
- 提供几个加密算法的源码
- DES IP置换IP逆置换
- DES的C 源码
- Design of Analog CMOS Integrated Circuits 拉扎
- codesys编程手册中文版
- System Design Interview - An Insider’s Guide
- Grokking the System Design Interview
- 翻译的美国大学经典参考书,Roland
- 认识界面以及PCB设计整体要求
- The Research on Smart Drill-in Fluid Design
- 埃塞俄比亚东北部Dessie转诊医院的糖
- Altium designer超全元件库+封装库部分
- dive into design patterns(Alexander Shvets)
- Antenna Theory Analysis and Design.3rd Edition
- FMEDesktop2019特别版forMacv2019.0.0.0.19181苹
- LANDesk 管理解决方案和采用英特尔:r
- Mentor Graphics Expedition Enterprise v7.9.5.r
- PowerDesigner16.6 破解补丁
- Altium Designer实战攻略与高速PCB设计P
- 复旦dc综合工具教程
- lotus domino notes(包括client administrato
- Type-c 接口封装,24引脚,Altium Design
- Behavior Designer 1.6.3(u2018.3.0).unitypa
- Codesys变成入门手册
- xenapp 7.6 xendesktop 7.6 企業版55永久用戶
-
Databa
se Reliability Engineering Designing
评论
共有 条评论