TC's internal 7zip unpacker cannot show the encrypted attribute, and cannot open encrypted files with individual passwords when the filenames are also encrypted (i.e. the access to the archive itself is password protected).
Download this pack: http://madsenworld.dk/tcmd/7z_test.7z
and unpack the encrypted files:
total7zip_files.7z
total7zip_files&filenames.7z
total7zip_files=filenames.7z
total7zip_mixed_files.7z
total7zip_mixed_files&filenames.7z
7zip_files&filenames.7z
rar420.rar
arj320.arj
internalzip.zip
The total7zip*.7z files are packed with the Total7zip 0.8.5.6 plugin with the 9.22 7z.dll, and the 7zip*,7z file is packed with the 7zip 0.7.6.6 plugin.
The password to open the arhives total7zip_files&filenames.7z, total7zip_mixed_files&filenames.7z and total7zip_files=filenames.7z is "0" (encrypted filenames).
The test.txt files are never encrypted.
The password to open ALL the test*.txt files in total7zip_files=filenames.7z is "0" (the same as to open the archive itself)
The password to open ALL the test?.txt files in total7zip_files.7z and 7zip_files&filenames.7z is "1"
The passwords to open the files test2.txt, test3.txt and test4.txt in total7zip_mixed_files.7z and total7zip_mixed_files&filenames.7z are "2", "3" and "4" (individual password for each file)
Now, if you open the total7zip*.7z archives with the Total7zip plugin activated for .7z files, you will see that the test?.txt files are all marked with an e for encrypted. See: http://madsenworld.dk/tcmd/7zattrib1.png .
If you disable the Total7zip plugin and any other plugin for 7z and open the archives again, then TC will use it's internal 7zip unpacker - and now the e-attribute is not shown - See: http://madsenworld.dk/tcmd/7zattrib2.png .
If you open the 7z files with the internal 7zip unpacker and you press F3 on the files, then it is not possible to open the encrypted files if the password for the archive and for the files are not the same as in total7zip_files&filenames.7z and total7zip_mixed_files&filenames.7z. In these two archives you can open the test.txt file with the password for the archive itself ("0").
The internalzip.zip, rar420.rar and arj320.arj archives is just to show that the e-atribute is shown in these archives as expected.
[solved] Internal 7zip unpacker can't handle the encrypted attribute
Moderators: Hacker, petermad, Stefan2, white
[solved] Internal 7zip unpacker can't handle the encrypted attribute
Last edited by petermad on 2021-05-30, 11:36 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
1. I confirm that 'e' isn't shown. I will try to add it
2. 7zip Archives with multiple passwords are not supported. Currently it's not planned. Please use a plugin if you need that.
2. 7zip Archives with multiple passwords are not supported. Currently it's not planned. Please use a plugin if you need that.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Confirmed fixed in TC 9.12rc412.11.17 Fixed: Internal 7zip unpacker didn't show 'e' in attributes column for encrypted files (32/64)

In TC 7.12rc4 I can now unpack such files. If I have deenabled the remembering of passswords I have to enter both the pathword for the archive and for the file for each file I open even if I don't leave the archive - but that is fair enough15.11.17 Fixed: 7zip: Partial support for 7zip archives with different password for file names and file content. Multiple files with different content passwords can only be unpacked separately, though (32/64)

Even though I didn't report this, I can confirm the fix14.11.17 Fixed: Alt+F5 pack dialog: "Encrypt" checkbox wasn't disabled when opening the dialog with a plugin as default packer which doesn't report encrypt option in packer capabilities (64)

License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Thanks! The problem with the 7zip dll interface is that it doesn't tell me for which file it requests the password, because the file name itself may also be encrypted with that password. It's also not possible to know whether a file is encrypted with the same password as the previous file, or a different password - I get password requests for each. Therefore it's not possible to unpack 7zip archives with multiple content passwords in one step.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
If you pack one file at the time, setting different passwords each time, and end up packing the last file also with the "Encrypt filenames" set, then you can make an archive where each file has its own password and there is a password for opening the archive for viewing - as you can see in the examples in aforementioned http://madsenworld.dk/tcmd/7z_test.7z pack. You can only do that with the Total7zip plugin, not with the 7zip plugin - it can only set password for fiules and filenames at the same time.I thought that only one password is used for entire filelist table...
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
MVV is right, there is just one password for all file names. But the files can have different passwords each for the content. In the total7zip_mixed_files&filenames.7z file, all names are encrypted with password '0'. While the files have passwords:
test.txt -> no password
test2.txt -> 2
test3.txt -> 3
test4.txt -> 4
test.txt -> no password
test2.txt -> 2
test3.txt -> 3
test4.txt -> 4
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com