如何使用私钥解密字符串 [英] How do I decrypt a string using private key

查看:228
本文介绍了如何使用私钥解密字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,



我想使用已提供的私钥解密字符串。我最近在C#开始编码,任何有关代码的帮助都将受到高度赞赏。



我尝试了什么:



我对此完全陌生,所以我甚至不知道从哪里开始我已经阅读了私钥和公钥,证书甚至编写了加密和解密的程序但是程序只解密我从同一程序加密的字符串。

Hello All,

I want to Decrypt a string using private key that has been provided. I have started coding recently in C# any help with a code will be highly appreciated.

What I have tried:

I am completely new to this so I don't even know where to start from I have read about the private and public keys, certificates and even wrote a program to encrypt and decrypt but that program only decrypt the string that I encrypted from the same program.

推荐答案

您可以更改程序以允许输入加密字符串和私钥然后使用密钥解密字符串。
You could change your program to also allow inputs of an encrypted string and of the private key and then use the key to decrypt the string.


阅读本文 [ ^ ]


这篇关于如何使用私钥解密字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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