Click here to Skip to main content
15,881,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 18-Oct-18 23:37pm
Comments
George Swan 19-Oct-18 2:06am    
Try this example
https://docs.microsoft.com/en-us/dotnet/standard/security/walkthrough-creating-a-cryptographic-application
F-ES Sitecore 19-Oct-18 5:36am    
Without knowing the encryption method that has been used this is impossible to answer.
Member 14022201 23-Oct-18 11:08am    
Encryption method is RSA

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.
 
Share this answer
 
v2
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900