tuoyuan
所属分类:加密解密
开发工具:C/C++
文件大小:8KB
下载次数:9
上传日期:2013-03-29 09:43:42
上 传 者:
qq240817254
说明: 实现了将英文字母进行椭圆曲线算法加密并解密的全过程,详细输出过程中的主要步骤,使代码更清晰
(The letters of the alphabet, the elliptic curve algorithm to encrypt and decrypt the whole process, detailed output of the main steps in the process to make the code clearer)
文件列表:
解密.txt (9117, 2012-11-22)
密文.txt (18124, 2012-11-22)
明文.txt (9613, 2012-11-22)
椭圆曲线上点.txt (376, 2012-11-22)
原文.txt (295, 2012-11-06)
tuoyuan.cpp (6534, 2012-11-22)
本原元分析.txt (9372, 2012-11-22)
还原后的原文.txt (232, 2012-11-22)
实验参数说明:
采用了以下一些参数:
char yuanwen[1000]; //由解密对应的原文
point mingwen[1000]; //原文转换后的明文,每两个字符生成的对应数字组成一个point,用以传递消息
point miwen[1000][2]; //加密后得到的密文
point huanyuan[1000]; //解密后得到的point
int length=0; //读入的point的个数
point gongyue; //公钥,由计算得到
point duiying[26]; //记录每一个字母对应的point点
int siyue=23; //私钥
int p=29; //素数
//表达式为 y^2 = x^3+x+1
int a = 1;
int b = 1;
point benyuanyuan; //此处的本原元在由getDian()中调用的findbenyuanyuan(point[], int)分析找出,在main()函数中赋初值,为(8,12)
int kk = 19;
注:
程序中定义了一个结构体point来记录数据:
typedef struct point
{
int x;
int y;
}point;
结果输出:
有多个文件,分别为:
椭圆曲线上的点.txt
本原元分析.txt
明文.txt
密文.txt
解密.txt
还原后的明文.txt
近期下载者:
相关文件:
收藏者: