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
  • 41,504
  • 15
  • 94
  • 130
Sudantha
  • 14,804
  • 42
  • 102
  • 158

2 Answers2

8

Use System.Security.Cryptography.RSACryptoServiceProvider.

The linked site contains an example.

Sebastian Paaske Tørholm
  • 47,464
  • 10
  • 95
  • 116
3

Here are some code snippets from SO and code project.

Community
  • 1
  • 1
AbrahamJP
  • 3,257
  • 6
  • 29
  • 38