RSA Encrypt / Decrypt Problem in .NET

前端 未结 5 1766
离开以前
离开以前 2020-12-08 08:58

I\'m having a problem with C# encrypting and decrypting using RSA. I have developed a web service that will be sent sensitive financial information and transactions. What I

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-08 09:19

    In DecryptRSA, is "data" base 64 encoded? If it is, you have to undo that first.

    Honestly I think you shouldn't implement that routine yourself to protect "sensitive financial information", unless you have a lot of experience with cryptography. There are too many ways to make errors. Better use some ready solution - maybe SSL and certificates, or just PGP or GnuPG?

提交回复
热议问题