加密图像文件夹 [英] Encrypt image folder

查看:100
本文介绍了加密图像文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用C#执行wpf应用程序,因为我有一个图像文件夹.我想对我的图像文件夹进行加密.我该怎么做?

Im doing a wpf application using C#.In that i have an image folder.I want my image folder to be encrypted.How can i do this?

推荐答案

如果您担心磁盘I/O,则可以使用MemoryStream.

但是,RSACryptoServiceProvider类将在字节数组上运行.此类使用RSA算法的实现执行非对称加密和解密.

此处的示例显示了如何使用字节数组来实现
If you are concerned about disk I/O you can use a MemoryStream.

However, the RSACryptoServiceProvider class will operate on byte arrays. This class performs asymmetric encryption and decryption using an implementation of the RSA algorithm.

The examples here show how you can do this with byte arrays


这篇关于加密图像文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆