如图 模拟登录 陕西移动 运营商,发现密码 被RSA加密 。 请教大神 知道 RSA 公钥模和指数 以及明文的情况下 ,如何模拟生成加密后对的字符串啊
根据{modulus:"009f8709656328cd8f93d6b862bde481ea0a52b17e7fa3e1875054095f1525715058b7398dc8e6696082de5412bf04576979e2534e89466a2c3ca4d8a6a82edd31860b3ad508664dc7367fe57b4cef6720adeadf64e8dc82f57295aa2bad50b19b7ca348568f4d7af79cd659afb79cf6a0fa63409c1f4f88e10c0b93a388292665"
","exponent":"010001"}
来加密 '123456' 请教有什么方法,算法如何实现。。谢谢
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.