Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello there!
i working on a project, in that, i just want to encrypt and decrypt all files from one folder.
The condition is whenever i open the app, it will automatically decrypt all files from folder, after that whenever i close the app, it will encrypt the files with same folder., is there any possibilities?
What kind of algorithm i follow, which is more secure, kindly help me friends.

<img src="http://i.imgur.com/eQeAQCf.png" title="img" width="600px"/>
Posted
Comments
Zoltán Zörgő 28-Feb-15 2:07am    
1) What do you expect to achieve?
2) And what if your application is closed ungracefully (e.g. killed from task manager)?
Prabakaran T 28-Feb-15 2:28am    
Hi Zoltan Zorgo.
1.i just want to encryption and decryption of files whenever the app is opened and closed.
the encryption and decryption takes place whenever the app is opened/closed. ie., i expect runtime encryption and decryption.

2. there is no problem with task manager., during runtime i disabled copy,paste and task manager so on.

Thats all Zoltan Zorgo.

1 solution

"2. there is no problem with task manager., during runtime i disabled copy,paste and task manager so on."
Yes there is: I can very, very easily decrypt the folder, and leave it decrypted. I don;t need copy and paste, I don't need the task manager.

All I need to do is pull the mains supply plug out of the wall...

Zoltan Zorgo is right: This is not a good idea from a security perspective: it can be bypassed extremely easily, and provides only a rudimentary sense of security that is very unfounded.

If you want to do something like this, you are going to have to use a much, much more sophisticated scheme involving Windows drivers and such like with "on-the-fly" decoding as the file is accessed.
Personally, I'd say from your question that anything like that is well outside your skill set at the moment: I'd leave this until you had a good deal more experience.
 
Share this answer
 
v2
Comments
Prabakaran T 28-Feb-15 4:27am    
Thats correct OriginalGriff.i agreed with your answer.
Now i realize, so what can i do ;( ?
So for that i posted question here and need a expertise advise from persons like u OriginalGriff, Kindly help me to fix this.
OriginalGriff 28-Feb-15 5:57am    
Basically, unless you are very proficient with Windows internals, there isn't anything you can do - I certainly don't recommend "having a go" with something that could easily corrupt your entire computer if you make a tiny mistake! :laugh:

Why are you trying to do this?
Prabakaran T 5-Mar-15 7:04am    
After a deep thought,Finally i decided to launch external video player,that receives the encrypted file path as String and decrypt it and play.
So if user wants to play a encrypted file, the video player receives the request and decrypt it and play.Is this good idea? @OriginalGriff.
OriginalGriff 5-Mar-15 7:44am    
That depends - bear in mind I have no idea what your application is about - but if it's intended to prevent people from accessing videos they haven't paid for, then probably not: if they can "get at" the encoded path and copy it, they can feed that to the player and get the file, can't they?

What are you trying to do?

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