To reproduce:
Using the 7z plugin, create an archive containing a single file. Select encrypt, enter a 30 char password, create archive. Use integrity check to confirm that it can decrypt ok.
Now repeat with a 31 char password. Note the CRC error when trying to extract / test the archive.
Any ideas?
7-zip password length limited to 30?
-
- Plugin Developer
- Posts: 707
- Joined: 08 Dec 2005, 14:33
- Location: Prague, Czech Republic
- Contact:
Re: 7-zip password length limited to 30?
I can't reproduce it. The limit is 128. I just tried a 60-char password and it worked fine.daern wrote:Now repeat with a 31 char password. Note the CRC error when trying to extract / test the archive.
Re: 7-zip password length limited to 30?
@daern, what version of Salamander & what version of 7-zip plugin?
WinXP Pro SP3 or Win7 x86 | SS 2.54
Re: 7-zip password length limited to 30?
OK, I can confirm a problem.
Not at 31 or 62 character PW length, but with an 80 character password.
Select a file
Pack using 7-zip Plugin
Choose Encrypt, (paste in) 80 char PW & confirm
(all other 7-zip settings are at defaults)
Archive is created.
Jump to command prompt
C:\> 7-zip.EXE t archive.7z
7-zip prompts for PW
Paste PW in
7-zip returns: "Everything is Ok"
Back in Salamander
Click on archive.7z
F3 to view the file
You're prompted for the 7-zip PW
Paste the PW in
7-zip presents error message:
"Data error occured when unpacking file 'archive.test'."
"The wrong password may have been entered."
Test Archive, archive.7z, with plugin
Prompts for PW
Paste PW in
Returns: "Archive 'C:\TMP\archive.7z' is corrupted."
Maybe at some "magic" length, plugin is inadvertently tacking on an extra character?
So what I've pasted is correct:
"12345678901234567890123456789012345678901234567890123456789012345678901234567890"
But internally, it sends:
"12345678901234567890123456789012345678901234567890123456789012345678901234567890"+"X"
Now I did not try any password lengths between 62 & 80, but somewhere in there, it must break (for me, & obviously different for daern)?
XP SP3 x86, not much RAM or HDD space, 7-zip command line version 4.65, plugin version 1.24
.
Not at 31 or 62 character PW length, but with an 80 character password.
Select a file
Pack using 7-zip Plugin
Choose Encrypt, (paste in) 80 char PW & confirm
(all other 7-zip settings are at defaults)
Archive is created.
Jump to command prompt
C:\> 7-zip.EXE t archive.7z
7-zip prompts for PW
Paste PW in
7-zip returns: "Everything is Ok"
Back in Salamander
Click on archive.7z
F3 to view the file
You're prompted for the 7-zip PW
Paste the PW in
7-zip presents error message:
"Data error occured when unpacking file 'archive.test'."
"The wrong password may have been entered."
Test Archive, archive.7z, with plugin
Prompts for PW
Paste PW in
Returns: "Archive 'C:\TMP\archive.7z' is corrupted."
Maybe at some "magic" length, plugin is inadvertently tacking on an extra character?
So what I've pasted is correct:
"12345678901234567890123456789012345678901234567890123456789012345678901234567890"
But internally, it sends:
"12345678901234567890123456789012345678901234567890123456789012345678901234567890"+"X"
Now I did not try any password lengths between 62 & 80, but somewhere in there, it must break (for me, & obviously different for daern)?
XP SP3 x86, not much RAM or HDD space, 7-zip command line version 4.65, plugin version 1.24

WinXP Pro SP3 or Win7 x86 | SS 2.54
-
- Plugin Developer
- Posts: 707
- Joined: 08 Dec 2005, 14:33
- Location: Prague, Czech Republic
- Contact:
Re: 7-zip password length limited to 30?
Ech, indeed, guys, you are right. The exact limit depends on the font, actually. The password edit field was not autoscrolled -> you could enter as much characters as much the width of the control was. The limit was 71 on my WinXP. The same problem was in Eroiica Viewer. Both solved for the next version of Salamander (2.54)therube wrote:Now I did not try any password lengths between 62 & 80, but somewhere in there, it must break (for me, & obviously different for daern)?