how to open a file using encryption

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cmrhema
    Contributor
    • Jan 2007
    • 375

    how to open a file using encryption

    Hi,

    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(prefe rably 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
  • dorandoran
    New Member
    • Feb 2007
    • 145

    #2
    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.te xt = = stored password) then set the visible property for the download button to true

    this could be very simple as you have described.

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      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.

      -Frinny

      Comment

      Working...