views:

25

answers:

2

Hello, I'm doing module to save and retrieve images using SQL server database 2008 and asp.net with vb.net. i already know how to do that but I need to save the image encrypted into database because images are very secure and I'm afraid if I saved it normally as binary data any one can convert this binary to see this images. if there is a way to do that please I need some help.

Thanks

+2  A: 

.net comes with cryptography in the System.Security.Cryptography namespace. The examples on this page are helpful:

http://msdn.microsoft.com/en-us/library/system.security.cryptography.aesmanaged.aspx

Caleb
A: 

For knowledge I found this RSACryptoServiceProvider

this example for encrypt and decrypt byte array and this is suitable for image.

thanks,

Amr Elnashar