I'm seeing some weird behavior with 7z. I create an archive with the following command:
7za.exe a "zip_test.zip" -r "C:\zip_test\*" -p"abc123"
When I open the archive
zip_test.zip using the 7z GUI and attempt to extract a file I'm asked for a password as expected, but when I run the following command on the same archive all the files and directories at the top level are extracted without me having provided a password, and I'm only prompted for a password once 7z starts processing deeper levels (i.e. not the top level), after the top level files have already been extracted:
7za.exe x -y -o"C:\zip_test" "C:\zip_test.zip"
I know the zip format has limitations when it comes to password protection, but I would expect 7z GUI and 7z command line to behave the same on the same archive. I do not see this behavior when using the 7z format.
Some clarification of what is going on here would be appreciated.