6

How to encrypt a text or any other media using RSA cryptography in C# ? .

Do i need to use any external libraries or are there any in-build stuff ? A small sample code will help!

mauris
  • 42,982
  • 15
  • 99
  • 131
Sudantha
  • 15,684
  • 43
  • 105
  • 161

2 Answers2

8

Use System.Security.Cryptography.RSACryptoServiceProvider.

The linked site contains an example.

Sebastian Paaske Tørholm
  • 49,493
  • 11
  • 100
  • 118
3

Here are some code snippets from SO and code project.

Community
  • 1
  • 1
AbrahamJP
  • 3,425
  • 7
  • 30
  • 39