搜索资源列表
rsa_1024progrom
- 利用C语言实现RSA加密算法。备注;数据只能是大写字母组成的字符串。 加密的时候,输入Y,然后输入要加密的文本(大写字母) 解密的时候,输入N,然后输入一个整数n表示密文的个数,然后n个整数表示加密时候得到的密文。-C language implementation of the RSA encryption algorithm. Remarks data can only be a string of capital letters. Encrypted, enter Y, an
MATLABRSA
- 基于matlab平台的RSA加密与解密,其中n和e默认-matlab RSA encryption and decryption, n and e default
Fermat_RSAkey
- 从RSAkey.txt中读取已生成的RSA密钥,形如n=pq(p和q皆为素数)的大整数,采用费马因子分解法对其分解,输出分解的结果和所费时间(单位为秒)。-Read from the RSAkey.txt RSA key, shaped like a large integer n = pq (p and q are prime numbers), using Fermat factorization method, decomposition, output decomposition res
456
- RSA算法的C语言实现 1.密钥的产生 (1)选两个安全的大素数p和q。 (2)计算n=p×q,φ(n)=(p-1)(q-1),其中φ(n)是n的欧拉函数值。 (3)选一整数e,满足1<e<φ(n),且gcd(φ(n),e)=1。 (4)计算d,满足de≡1 modφ(n),即d是e在模φ(n)下的乘法逆元,因e与φ(n)互素,由模运算可知,它的乘法逆元一定存在。 (5)以{e,n}为公开钥,{d,n}为秘密钥。 2.加密 加密时首先将明文M比特串分组