Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
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?
Posted
Comments
Sergey Alexandrovich Kryukov 17-Nov-12 0:28am    
I wonder why? Did you think about just having images in a resource embedded in the executable module instead? If you encrypt it, what will be used for decryption? I mean, if your code can decrypt images, the one who you want protect this data from can do, too...
--SA
sahabiswarup 17-Nov-12 0:32am    
you are saving all your image in that folder right?
NimiShabu 17-Nov-12 1:01am    
yes
sahabiswarup 17-Nov-12 1:26am    
why don't you save image in database ? then your image will be encrypted as well as secured.
NimiShabu 17-Nov-12 1:59am    
Actually Im not using any database in my application

1 solution

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
 
Share this answer
 
Comments
sariqkhan 20-Nov-12 4:47am    
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900