文件名称:VC_RSA
- 所属分类:
- 加密解密
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1.87mb
- 下载次数:
- 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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
VC_RSA
......\CCommon.cpp
......\CCommon.h
......\CDSA.cpp
......\CDSA.h
......\CRSA.cpp
......\CRSA.h
......\Debug
......\ReadMe.txt
......\res
......\resource.h
......\RSA.APS
......\RSA.clw
......\RSA.cpp
......\RSA.dsp
......\RSA.dsw
......\RSA.h
......\RSA.ncb
......\RSA.opt
......\RSA.plg
......\RSA.rc
......\RSADlg.cpp
......\RSADlg.h
......\StdAfx.cpp
......\StdAfx.h
......\CCommon.cpp
......\CCommon.h
......\CDSA.cpp
......\CDSA.h
......\CRSA.cpp
......\CRSA.h
......\Debug
......\ReadMe.txt
......\res
......\resource.h
......\RSA.APS
......\RSA.clw
......\RSA.cpp
......\RSA.dsp
......\RSA.dsw
......\RSA.h
......\RSA.ncb
......\RSA.opt
......\RSA.plg
......\RSA.rc
......\RSADlg.cpp
......\RSADlg.h
......\StdAfx.cpp
......\StdAfx.h