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

后端 未结 6 2073
悲&欢浪女
悲&欢浪女 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:50

    Usually, RSA is only used to transfer a symmetric key (at the start of the stream for example) and then the bulk data is encrypted with that key.

    Asymmetric encryption isn't efficient enough to transfer a lot of data.

提交回复
热议问题