implement RSA in .NET core

后端 未结 2 1611
余生分开走
余生分开走 2020-11-28 07:21

I\'m trying to encrypt and decrypt some data with RSA. I\'ve looked up teh RSA class but I\'m only seeing the abstract class https://msdn.microsoft.com/en-us/li

2条回答
  •  离开以前
    2020-11-28 07:54

    You will need to use the dotnetcore library instead. Add the System.Security.Cryptography.Algorithms Nuget package to your project. You can find it here: System.Security.Cryptography.Algorithms

    It provides all the common Algorithms for your project.

    Here is the RSACryptoServiceProvider class that you would use for the Encrypt() and Decrypt() methods.

提交回复
热议问题