简体   繁体   中英

Is there a way to generate different contents in a zip file based on a password?

For example, I email a zip file to three friends. I give one password to two friends but a different one to my third friend to unlock different files than my other two friends.

It can be done by developing a program, but I'm not looking to make it an .exe. Can anyone think of any way to do this if not with a .zip?

Yes, this can be done without developing a program:

  • Create a passworded ZIP of the first file.
  • Open the resulting .zip with WinRAR.
  • Add files to archive, choose the second file and set a different password (on Advanced tab).

All friends will be able to see the file list, but they will only be able to view/extract the file of which they have the password.

Maybe my idea isn't exactly what you are looking for, but what you could do is create an encrypted volume (~file) with TrueCrypt in which you create a hidden volume .

That way you can send one file to all three friends and based on the passwords you give them, they'll see different contents. TrueCrypt will however not compress the files, only encrypt them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM