是否有可能使用.NET的RSACryptoServiceProvider私钥加密? [英] Is it possible to encrypt with private key using .net RSACryptoServiceProvider?

查看:241
本文介绍了是否有可能使用.NET的RSACryptoServiceProvider私钥加密?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道的RSACryptoServiceProvider可以用公钥加密,那么它可以被解密的私钥。

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

是否有可能使用加密私钥解密与使用的RSACryptoServiceProvider公钥?

Is it possible to encrypt with the private key and decrypt with the public key using the RSACryptoServiceProvider ?

推荐答案

没有。这不是多么任何公共/私人密钥加密的作品。你只能用公钥进行加密,只有用私钥进行解密。

No. That's not how any public/private key encryption works. You can only encrypt with the public key, and only decrypt with the private key.

这篇关于是否有可能使用.NET的RSACryptoServiceProvider私钥加密?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆