how to use RSA to encrypt files (huge data) in C#

后端 未结 6 2066
悲&欢浪女
悲&欢浪女 2020-11-28 02:38

I\'m new to encryption. I need to implement asymmetric encryption algorithm, which i think it uses private/public key. I started using a sample of RSACryptoServiceProvider.

6条回答
  •  [愿得一人]
    2020-11-28 02:44

    we have:

    MaxBlockSize=((KeySize - 384) / 8) + 37
    

    OR

    MaxBlockSize=((KeySize - 384) / 8) + 7
    

    so, we can divide Data to some blocks and then encrypt each one and then merge them

提交回复
热议问题