This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Internal 7zip unpacker can't handle the encrypted attribute

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC Fixed bugs Printable version
View previous topic :: View next topic  
Author Message
petermad
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 7323
Location: Valsted, Denmark

PostPosted: Sat Nov 11, 2017 5:15 pm    Post subject: Internal 7zip unpacker can't handle the encrypted attribute Reply with quote

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.
_________________
#524
Danish Total Commander Translator
TC 9.10b1 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit. TC 2.81b8 on Android 6.0

Get Extended Total Commander Menus
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34715
Location: Switzerland

PostPosted: Sun Nov 12, 2017 8:43 am    Post subject: Reply with quote

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.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
petermad
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 7323
Location: Valsted, Denmark

PostPosted: Thu Nov 16, 2017 2:17 pm    Post subject: Reply with quote

Quote:
12.11.17 Fixed: Internal 7zip unpacker didn't show 'e' in attributes column for encrypted files (32/64)

Confirmed fixed in TC 9.12rc4 Smile

Quote:
15.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)

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 enough Smile

Quote:
14.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)

Even though I didn't report this, I can confirm the fix Smile
_________________
#524
Danish Total Commander Translator
TC 9.10b1 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit. TC 2.81b8 on Android 6.0

Get Extended Total Commander Menus
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34715
Location: Switzerland

PostPosted: Fri Nov 17, 2017 9:16 am    Post subject: Reply with quote

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
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 7915
Location: Russian Federation

PostPosted: Fri Nov 17, 2017 9:37 am    Post subject: Reply with quote

I thought that only one password is used for entire filelist table...
_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
petermad
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 7323
Location: Valsted, Denmark

PostPosted: Sat Nov 18, 2017 4:14 am    Post subject: Reply with quote

Quote:
I thought that only one password is used for entire filelist table...

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.
_________________
#524
Danish Total Commander Translator
TC 9.10b1 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit. TC 2.81b8 on Android 6.0

Get Extended Total Commander Menus
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34715
Location: Switzerland

PostPosted: Mon Nov 20, 2017 2:43 am    Post subject: Reply with quote

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
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC Fixed bugs All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group