文件名称:VC_RSA
- 所属分类:
- 加密解密
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2008-10-13
- 文件大小:
- 5.39kb
- 下载次数:
- 0次
- 提 供 者:
- 烟*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
一、RSA基本原理
对明文分组M和密文分组C,加密与解密过程如下:
C = POW (M , e) mod n
M = POW(C , d) mod n = POW(POW( M ,e), d) mod n=POW( M,e*d)
其中POW是指数函数,mod是求余数函数。
其中收发双方均已知n,发送放已知e,只有接受方已知d,因此公钥加密算法的公钥为
KU={ e , n},私钥为KR={d , n}。该算法要能用做公钥加密,必须满足下列条件:
1. 可以找到e ,d和n,使得对所有M<n ,POW(M ,e*d)=M mod n .
2. 对所有 M<n,计算POW (M , e)和POW(C , d)是比较容易的。
3. 由e 和n确定d是不可行的
-one, the basic tenets of RSA expressly group M and cipher block C, encryption and decryption process is as follows : C = POW (M, e) mod n = M POW (C, d) mod n = POW (POW (M, e), d) mod n = POW (M, e * d), which is an exponential function POW, mod is the pursuit of the remaining functions. Transceivers which both known n, send e Fang known, the only known recipient d, therefore the public key encryption algorithm for public key e KU = (n), private key for KR = (d, n). The algorithm could be used to be a public key encryption, must meet the following conditions : 1. E can be found, and d n, making all the right M
对明文分组M和密文分组C,加密与解密过程如下:
C = POW (M , e) mod n
M = POW(C , d) mod n = POW(POW( M ,e), d) mod n=POW( M,e*d)
其中POW是指数函数,mod是求余数函数。
其中收发双方均已知n,发送放已知e,只有接受方已知d,因此公钥加密算法的公钥为
KU={ e , n},私钥为KR={d , n}。该算法要能用做公钥加密,必须满足下列条件:
1. 可以找到e ,d和n,使得对所有M<n ,POW(M ,e*d)=M mod n .
2. 对所有 M<n,计算POW (M , e)和POW(C , d)是比较容易的。
3. 由e 和n确定d是不可行的
-one, the basic tenets of RSA expressly group M and cipher block C, encryption and decryption process is as follows : C = POW (M, e) mod n = M POW (C, d) mod n = POW (POW (M, e), d) mod n = POW (M, e * d), which is an exponential function POW, mod is the pursuit of the remaining functions. Transceivers which both known n, send e Fang known, the only known recipient d, therefore the public key encryption algorithm for public key e KU = (n), private key for KR = (d, n). The algorithm could be used to be a public key encryption, must meet the following conditions : 1. E can be found, and d n, making all the right M
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 11912924vc_rsa.rar 列表 VC_RSA\CCommon.cpp VC_RSA\CCommon.h VC_RSA\CDSA.cpp VC_RSA\CDSA.h VC_RSA\CRSA.cpp VC_RSA\CRSA.h VC_RSA\Debug VC_RSA\folder.htt VC_RSA\ReadMe.txt VC_RSA\res VC_RSA\resource.h VC_RSA\RSA.APS VC_RSA\RSA.clw VC_RSA\RSA.cpp VC_RSA\RSA.dsp VC_RSA\RSA.dsw VC_RSA\RSA.h VC_RSA\RSA.ncb VC_RSA\RSA.opt VC_RSA\RSA.plg VC_RSA\RSA.rc VC_RSA\RSADlg.cpp VC_RSA\RSADlg.h VC_RSA\StdAfx.cpp VC_RSA\StdAfx.h VC_RSA