-
rsa
rsa 实现代码,运用大数算法#include "afx.h"
#include "Integer.h"
#include <string>
#include <iostream>
using namespace std
//构造大数对象并初始化为零
CInteger::CInteger()
{
m_nLength=1
for(int i=0 i<BI_MAXLEN i++)m_ulValue[i]=0
}
//解构大数对象
CInteger::~CInteger()
{
}
/*大数比较
调用方式:N.Cmp(A)
返回值:若N<A返回-1;若N=A返回0;若N>A返回1
*/
int CInteger::Cmp(CInteger& A)(#include "afx.h"
#include "Integer.h"
#include <string>
#include <iostream>
using namespace std
//构造大数对象并初始化为零
CInteger::CInteger()
{
m_nLength=1
for(int i=0 i<BI_MAXLEN i++)m_ulValue[i]=0
}
//解构大数对象
CInteger::~CInteger()
{
}
/*大数比较
调用方式:N.Cmp(A)
返回值:若N<A返回-1;若N=A返回0;若N>A返回1
*/
int CInteger::Cmp(CInteger& A))
- 2012-05-16 11:09:35下载
- 积分:1
-
39.3
说明: 编制程序,将输入的一行字符以加密的形式输出,然后将其解密,解密的字符串序列与输入的正文相比较,吻合时输出解密的正文,否则解密失败。
加密时,将每个字符的ascii码依次反复加上“4962873”中的数字,并在32(‘’)~122(‘z’)之间作模运算。解密与加密的顺序相反。例如输入正文“the result of 3 and 2 is not 8” 结果为:
(Programming, the input line character output in an encrypted form, and then decrypted, the decrypted text sequence of characters compared with the input, output to decrypt the body of the agreement, otherwise the decryption failed. Encryption, ascii code of each character in turn repeatedly with " 4962873" in the figures, and 32 (' ' )~ 122 (' z' ) as a model between the operations. Decryption and encryption in reverse order. For example, enter the text " the result of 3 and 2 is not 8" results:)
- 2011-04-05 08:43:48下载
- 积分:1
-
BM
密码学BM算法的C++实现。可计算100阶m序列的生成多项式(Cryptography BM algorithm in C++. Computable 100 m sequence generator polynomial order)
- 2020-07-01 20:20:01下载
- 积分:1
-
MD5VB2010
MD5VB2010实现MD5加密,计算机VB程序(MD5VB2010 achieve MD5 encryption, computer VB program)
- 2013-12-11 09:24:32下载
- 积分:1
-
DES
可以对文件进行加解密,这是自己编写的实验作业(Can encrypt and decrypt files, it is their job to prepare experimental)
- 2009-11-09 12:17:02下载
- 积分:1
-
AllNagra2_source
Nagravision 2 patch source code
- 2011-11-17 10:39:10下载
- 积分:1
-
SM3,SM4_UI
将国密算法SM3, SM4 ECB的C代码打包成dll库。
然后在C#中进行调用。
有输入输出接口,测试结果正确。
包含所有源代码,可在此基础上进一步开发(The C code of the Chinese national algorithm SM3, SM4 ECB is packaged into a dll library and then called in C# with input and output interfaces. The test result is correct. Contains all source code and can be further developed on this basis)
- 2020-11-17 01:49:39下载
- 积分:1
-
des
实现对单文件的DES加密解密,不限制大小,DES加密部分自写,非调用,用于学习DES原理。(The realization of the single document DES encryption and decryption, no limit to the size, DES encryption part self written, non call, for learning DES principle.)
- 2014-10-29 10:14:19下载
- 积分:1
-
sdgzhidian
很好的字典生成器,输入关键字,实现排列组合,破解密码的利器(Good dictionary builder, enter a keyword permutations and combinations to achieve, to crack the code of the weapon)
- 2013-12-28 14:11:01下载
- 积分:1
-
EC-Verify-Signature
基于miracl大数库的椭圆曲线EC的验证签名算法的c语言实现(Based on large numbers miracl library EC verification of an elliptic curve signature algorithm c-language implementation)
- 2020-07-03 18:40:01下载
- 积分:1