开发者

Encryption and decryption binary files with c#

开发者 https://www.devze.com 2023-02-06 20:47 出处:网络
There are lot of examples of encrypting/decrypting passwords and simple text files with c#, available on web. Bu开发者_StackOverflow中文版t I havn\'t found any example on encrypting or decrypting enti

There are lot of examples of encrypting/decrypting passwords and simple text files with c#, available on web. Bu开发者_StackOverflow中文版t I havn't found any example on encrypting or decrypting entire binary file like .exe or .mdb file.

Can anybody provide an example on encrypting/decrypting binary file or can provide some links.

Thanks for sharing your valuable time.


It's pretty much the same, since the Crypto-APIs deal anyway always with byte streams or arrays.

This might help you: http://www.codeproject.com/KB/security/DotNetCrypto.aspx


I think you can read byte[] from file and just use simple encrypttion.


Hint: Don't use the crypto API.

Take a look into src + examples, at:

http://www.bouncycastle.org/csharp/

Here's why:
http://en.wikipedia.org/wiki/NSAKEY

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号