Click here to Skip to main content
15,921,884 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I am wondering if a user wants to encrypt a file and later when the user try's to decrypt the and types in the wrong password, how do I check to see if the password the user supplied is the same one they encrypted the file with in the first place???:confused::confused::confused:
Posted
Comments
shukla dhaval 19-Jun-10 4:03am    
Can you just provide some more details about your scenario? If you can provide information that where you store your file in your database or on hard drive, are you store information that particular file is encrypted etc etc.

If you provide this kind of information my be i can share something with you.

1 solution

When you encrypt a file that you later need to decrypt, you encrypt using a key. Later when you want to decrypt the file you need to supply the exact key else you cannot decrypt it. Unless you are confusing key with password, there is nothing to do with passwords and encryption. If you want the file to be only decrypted by a particualr individual with a password, you need to implement this yourself in your app.

Happy Coding :-D
 
Share this answer
 

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