Is it possible to encrypt with private key using .net RSACryptoServiceProvider?

前端 未结 9 1986
醉话见心
醉话见心 2020-12-08 05:32

I know that RSACryptoServiceProvider can encrypt with the public key, then it can be decrypted with the private key.

Is it possible to encrypt with the private key a

9条回答
  •  悲&欢浪女
    2020-12-08 06:09

    The security of public key cryptosystems rests on the fact that the sign()/encrypt() function is a one-way function in that it would take an infeasible amount of time to decrypt it without the public key "trap-door".

    Also, usually the generated keys are not the same length, although they could be. There is a lot of papers about asymmetric key length with RSA.

提交回复
热议问题