Score:1

Can I check the contents of encrypted archive without using password?

za flag

I need to create and encrypt archive with some files. Later archive contents must be checked by someone who doesn't know encryption password.

I've done my research but couldn't find proper tool for this job. The easiest way to encrypt archive is zip --encrypt but I'am not sure I would have an opportunity to look inside it without using password.

Score:1
vn flag

Yes, this is possible with Zip files, since here the contents of each contained file is encrypted, but the Zip file itself is not.

Install Zip on Ubuntu: (not installed by default)

sudo apt install zip

Create a password protected archive: (compress all files recursively inside directory)

zip -r -P password myfile.zip ./directory/

View all files inside: (without being prompted for password)

zip -sf myfile.zip    # Only filenames

unzip -l myfile.zip   # Size, date and filenames

And to unzip the archive: (you'll be prompted for password at first file)

unzip myfile.zip
malene avatar
za flag
Thank you for help! But zip -sf shows me only top directory. Can I somehow recursively view all files inside directory?
Artur Meinild avatar
vn flag
For me (on Ubuntu 22.04), `zip -sf` as well as `unzip -l` shows all files recursively.
malene avatar
za flag
My bad, everything works correctly!
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.