python - 知道RSA公钥的模 和指数 ,可以用来模拟加密吗
高洛峰
高洛峰 2017-04-18 10:12:54
0
2
546

如图 模拟登录 陕西移动 运营商,发现密码 被RSA加密 。 请教大神 知道 RSA 公钥模和指数 以及明文的情况下 ,如何模拟生成加密后对的字符串啊

根据{modulus:"009f8709656328cd8f93d6b862bde481ea0a52b17e7fa3e1875054095f1525715058b7398dc8e6696082de5412bf04576979e2534e89466a2c3ca4d8a6a82edd31860b3ad508664dc7367fe57b4cef6720adeadf64e8dc82f57295aa2bad50b19b7ca348568f4d7af79cd659afb79cf6a0fa63409c1f4f88e10c0b93a388292665"
","exponent":"010001"}
来加密 '123456' 请教有什么方法,算法如何实现。。谢谢

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
Ty80

Public keys can also be encrypted, but it will be useless if the private key of your encrypted information is not correct. By the way, both public and private keys can be encrypted and decrypted.

伊谢尔伦

I don’t know what the exponent you are referring to refers to. To calculate the public key, you must know e. Now that the module is known, we only need to know e. e is a randomly generated number between 1 and φ(n) and relatively prime to φ(n). Since you don't know φ(n) now, you can try using e to participate in the operation to see if it is correct. If it is correct, then the exponent you are talking about should be e. You can give it a try.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!