472,119 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

how to open a file using encryption

375 256MB

I have to develop an application, where the user will be asked to download a file. Each user will be allocated a password. After the file downloads(preferably a notepad or a doc or a pdf) the user will enter a password and if the password matches the file should open

Can anyone provide my any links for the same
Apr 8 '09 #1
2 1193
145 100+
1. build a class that will take user input (txtpassword) and run against your database (where you stored all the passwords for each user)
2. If they match (txtpassword.text = = stored password) then set the visible property for the download button to true

this could be very simple as you have described.
Apr 8 '09 #2
9,735 Expert Mod 8TB
I'm not sure how you would encrypt the file.

I know that you can do this with Access Files...but I guess it would really depend on the type of file that you're sending.

I would recommend generating the password dynamically in your code and use that password when encrypting the file. When you send the file to the person, also send them a message telling them the password to open the file.

If you zip the file using code I think that you can apply a password at that point.... check out this article. I didn't read it through fully but I think it mentions how to do this.

Apr 8 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

34 posts views Thread by Michael Foord | last post: by
2 posts views Thread by Jonathan Trevor | last post: by
2 posts views Thread by Peter | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.