PowerArchiver Forums

PowerArchiver Forums (http://www.powerarchiver.com/forums/index.php)
-   Tech Support (http://www.powerarchiver.com/forums/forumdisplay.php?f=9)
-   -   Password with a quote " in ist (http://www.powerarchiver.com/forums/showthread.php?t=4568)

Halvar 05-25-2010 08:06 AM

Password with a quote " in ist
 
Sorry if this was answered before but I couldn't find anything.

I have to create ZIP files on a regular basis that must be encrypted with a pssword. This password contains special characters, and especially the double quote ".

taking aa"a as an example password, my command line would be something like

pacomp -a -saa"a -e2 -p myfile.zip myfile.txt

... but this doesn't work because the quotation mark is interpreted as the beginning of a string.

I tried escaping the " sign with "", \" and ^", but nothing of this works (in fact, with "", pacomp created a file but with the password aaa instead of aa"a ). :(

Any advice? Thanks!

Micke 05-30-2010 04:39 PM

Hi!
I haven't tested using " in the password field, because the password I set can't be used when I try to extract the file. Maybe I'm doing something wrong :confused:.

Here's my command for creating the archive with password.

Code:

pacomp -a -p -ssecret -s0 TestPassword.zip Logfile.log

PowerArchiver Command Line (PACL)              Version 6.01      [Feb 07 2010]
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved. Registered Version
This product is licensed to:
Archive Compression Utility -- ZIP,ZIPX,7-ZIP,CAB,LHA,BH,JAR,TAR,GZIP,BZIP2
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive: D:\PACL_Test\TestPassword.zip
  preparing to compress...
  adding: Logfile.log  --> Done. [100%]

All OK

Now I try extract the created file
Code:

paext -e -ssecret TestPassword.zip
PowerArchiver Command Line (PACL)              Version 6.01      [Feb 07 2010]
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved. Registered Version
This product is licensed to:
Archive Extr.---ZIP,ZIPX,7Z,CAB,LHA,ARJ,RAR,ACE,TAR,GZ,BZ2,UUE,ZOO,B64,YENC,...
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive --> D:\PACL_Test\TestPassword.zip [ZIP]

  extracting: Logfile.log
  *** Message: Invalid password  secret

  *** Message: Invalid password  secret

  *** Message: Invalid password  secret
 --> CRC ERROR! [100%]

  *** Error: File fails CRC check

The archive can't be open because it thinks the password is incorrect.

I'm using PACL 6.01 and Win XP Sp3

Kind Regards
Micke

spwolf 05-30-2010 07:12 PM

micke try c1 or c2 and see how it goes...

spwolf 05-30-2010 07:13 PM

Quote:

Originally Posted by Halvar (Post 22487)
Sorry if this was answered before but I couldn't find anything.

I have to create ZIP files on a regular basis that must be encrypted with a pssword. This password contains special characters, and especially the double quote ".

taking aa"a as an example password, my command line would be something like

pacomp -a -saa"a -e2 -p myfile.zip myfile.txt

... but this doesn't work because the quotation mark is interpreted as the beginning of a string.

I tried escaping the " sign with "", \" and ^", but nothing of this works (in fact, with "", pacomp created a file but with the password aaa instead of aa"a ). :(

Any advice? Thanks!

Thanks - Mili will write it up for upcoming release...

Mili 05-31-2010 08:20 AM

got it, thanks Halvar!!

Micke 05-31-2010 01:39 PM

Hi!

Quote:

Originally Posted by spwolf (Post 22513)
micke try c1 or c2 and see how it goes...

I don't know what that parameter (c1, c2) does :p. Anyway I think I have found the problem now.

First without the -e parameter

Code:

D:\PACL_Test>pacomp -a -p -ssecret TestPassword.zip Logfile.log
PowerArchiver Command Line (PACL)              Version 6.01      [Feb 07 2010]
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved. Registered Version
This product is licensed to:
Archive Compression Utility -- ZIP,ZIPX,7-ZIP,CAB,LHA,BH,JAR,TAR,GZIP,BZIP2
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive: D:\PACL_Test\TestPassword.zip
  preparing to compress...
  adding: Logfile.log  --> Done. [100%]

All OK

D:\PACL_Test>

Then I try extract the created archive using the same password

Code:

D:\PACL_Test>paext -e -ssecret TestPassword.zip
PowerArchiver Command Line (PACL)              Version 6.01      [Feb 07 2010]
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved. Registered Version
This product is licensed to:
Archive Extr.---ZIP,ZIPX,7Z,CAB,LHA,ARJ,RAR,ACE,TAR,GZ,BZ2,UUE,ZOO,B64,YENC,...
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive --> D:\PACL_Test\TestPassword.zip [ZIP]

  extracting: Logfile.log  --> Done. [100%]

D:\PACL_Test>

As you can see, everything works fine. Repeat the test with parameter set to -e0

Code:

D:\PACL_Test>pacomp -a -p -ssecret -e0 TestPassword_e0.zip Logfile.log
PowerArchiver Command Line (PACL)              Version 6.01      [Feb 07 2010]
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved. Registered Version
This product is licensed to:
Archive Compression Utility -- ZIP,ZIPX,7-ZIP,CAB,LHA,BH,JAR,TAR,GZIP,BZIP2
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive: D:\PACL_Test\TestPassword_e0.zip
  preparing to compress...
  adding: Logfile.log  --> Done. [100%]

All OK

D:\PACL_Test>

Looks fine, then extraction

Code:

D:\PACL_Test>paext -e -ssecret TestPassword_e0.zip
PowerArchiver Command Line (PACL)              Version 6.01      [Feb 07 2010]
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved. Registered Version
This product is licensed to:
Archive Extr.---ZIP,ZIPX,7Z,CAB,LHA,ARJ,RAR,ACE,TAR,GZ,BZ2,UUE,ZOO,B64,YENC,...
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive --> D:\PACL_Test\TestPassword_e0.zip [ZIP]

  extracting: Logfile.log  --> Done. [100%]

D:\PACL_Test>

Do the same thing with parameter -e1

Code:

D:\PACL_Test>pacomp -a -p -ssecret -e1 TestPassword_e1.zip Logfile.log
PowerArchiver Command Line (PACL)              Version 6.01      [Feb 07 2010]
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved. Registered Version
This product is licensed to:
Archive Compression Utility -- ZIP,ZIPX,7-ZIP,CAB,LHA,BH,JAR,TAR,GZIP,BZIP2
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive: D:\PACL_Test\TestPassword_e1.zip
  preparing to compress...
  adding: Logfile.log  --> Done. [100%]

All OK

D:\PACL_Test>

Extraction of the created archive

Code:

D:\PACL_Test>paext -e -ssecret TestPassword_e1.zip
PowerArchiver Command Line (PACL)              Version 6.01      [Feb 07 2010]
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved. Registered Version
This product is licensed to:
Archive Extr.---ZIP,ZIPX,7Z,CAB,LHA,ARJ,RAR,ACE,TAR,GZ,BZ2,UUE,ZOO,B64,YENC,...
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive --> D:\PACL_Test\TestPassword_e1.zip [ZIP]

  extracting: Logfile.log  --> Done. [100%]

D:\PACL_Test>

And finally with the -e2 parameter

Code:

D:\PACL_Test>pacomp -a -p -ssecret -e2 TestPassword_e2.zip Logfile.log
PowerArchiver Command Line (PACL)              Version 6.01      [Feb 07 2010]
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved. Registered Version
This product is licensed to:
Archive Compression Utility -- ZIP,ZIPX,7-ZIP,CAB,LHA,BH,JAR,TAR,GZIP,BZIP2
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive: D:\PACL_Test\TestPassword_e2.zip
  preparing to compress...
  adding: Logfile.log  --> Done. [100%]

All OK

D:\PACL_Test>

Extraction of the file

Code:

D:\PACL_Test>paext -e -ssecret TestPassword_e2.zip
PowerArchiver Command Line (PACL)              Version 6.01      [Feb 07 2010]
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved. Registered Version
This product is licensed to:
Archive Extr.---ZIP,ZIPX,7Z,CAB,LHA,ARJ,RAR,ACE,TAR,GZ,BZ2,UUE,ZOO,B64,YENC,...
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive --> D:\PACL_Test\TestPassword_e2.zip [ZIP]

  extracting: Logfile.log  --> Done. [100%]

D:\PACL_Test>

Everything works without any problem now. The reason for the error message I got was because of this:

Code:

pacomp -a -p -ssecret -s0 TestPassword.zip Logfile.log
I had probably some brain meltdown then I tried this last night , because instead of using the -e parameter I repeated the -s parameter again, resulting in a password set to 0 instead of secret and that caused my problem. :o:o:o

I didn't even noticed this until now when I look at my post to see what parameter that I have used. My apologies for bringing this up. There's no problem with the password set in PACOMP, only brain meltdown behind the keyboard :p

Kind Regards
Micke

spwolf 05-31-2010 01:55 PM

ok, np... thank you!

spwolf 10-07-2010 03:05 AM

Quote:

Originally Posted by Halvar (Post 22487)
Sorry if this was answered before but I couldn't find anything.

I have to create ZIP files on a regular basis that must be encrypted with a pssword. This password contains special characters, and especially the double quote ".

taking aa"a as an example password, my command line would be something like

pacomp -a -saa"a -e2 -p myfile.zip myfile.txt

... but this doesn't work because the quotation mark is interpreted as the beginning of a string.

I tried escaping the " sign with "", \" and ^", but nothing of this works (in fact, with "", pacomp created a file but with the password aaa instead of aa"a ). :(

Any advice? Thanks!

^" should work fine?

spwolf 10-08-2010 06:44 AM

PACL 6.02 RC:
http://www.powerarchiver.com/test/release10/pacl602.exe

Please check your reported issues and see if they are fixed or not... thanks!

spwolf 10-08-2010 06:44 AM

-s@filename to pickup password from file...

Micke 10-19-2010 02:18 PM

Hi!
Time for another test. This time with quote in password. Here's the result from the test

Create a archive with password = aa"a
Code:

D:\PACL_Test>pacomp -a -saa"a -e2 -p Test3.zip PICT0030.jpg
PowerArchiver Command Line (PACL)              Version 6.02      [Oct 10 2010]
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved. Registered Version
This product is licensed to:
Archive Compression Utility -- ZIP,ZIPX,7-ZIP,CAB,LHA,BH,JAR,TAR,GZIP,BZIP2
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Example PACOMP commands:
------------------------

  pacomp -a docs.zip "c:\my documents\*.doc"
      Compress all *.doc files from  "c:\my documents" directory to archive
      docs.zip

  pacomp -a -ssecret -c0 -p -r stuff.bh "c:\my stuff\*"
      Compress all files from "c:\my stuff" directory and subdirectories to
      archive stuff.bh with no compression and with password "secret"

Press ENTER to continue:

PACOMP won't accept quote in password. Next thing try using ^"
Code:

D:\PACL_Test>pacomp -a -saa^"a -e2 -p Test3.zip PICT0030.jpg
PowerArchiver Command Line (PACL)              Version 6.02      [Oct 10 2010]
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved. Registered Version
This product is licensed to:
Archive Compression Utility -- ZIP,ZIPX,7-ZIP,CAB,LHA,BH,JAR,TAR,GZIP,BZIP2
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Example PACOMP commands:
------------------------

  pacomp -a docs.zip "c:\my documents\*.doc"
      Compress all *.doc files from  "c:\my documents" directory to archive
      docs.zip

  pacomp -a -ssecret -c0 -p -r stuff.bh "c:\my stuff\*"
      Compress all files from "c:\my stuff" directory and subdirectories to
      archive stuff.bh with no compression and with password "secret"

Press ENTER to continue:

Still no success. I then try put the password in a file.

Content of password.txt
Code:

aa"a
I then create the archive
Code:

D:\PACL_Test>pacomp -a -s@password.txt -e2 -p Test3.zip PICT0030.jpg
PowerArchiver Command Line (PACL)              Version 6.02      [Oct 10 2010]
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved. Registered Version
This product is licensed to:
Archive Compression Utility -- ZIP,ZIPX,7-ZIP,CAB,LHA,BH,JAR,TAR,GZIP,BZIP2
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive: D:\PACL_Test\Test3.zip
  preparing to compress...
  adding: PICT0030.JPG  --> Done. [100%]

All OK

D:\PACL_Test>

Looks like it working properly. Now I try test the created archive to check that the password is set correctly.
Code:

D:\PACL_Test>paext -t Test3.zip
PowerArchiver Command Line (PACL)              Version 6.02      [Oct 10 2010]
Copyright(c) 1999-2010 ConeXware, Inc.  All Rights Reserved. Registered Version
This product is licensed to: Mikael Hedman
Archive Extr.---ZIP,ZIPX,7Z,CAB,LHA,ARJ,RAR,ACE,TAR,GZ,BZ2,UUE,ZOO,B64,YENC,...
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive --> D:\PACL_Test\Test3.zip [ZIP]

  testing: PICT0030.JPG  Enter password for PICT0030.JPG: aaa

  *** Message: Invalid password  aaa
Enter password for PICT0030.JPG: aa"a
--> OK [100%]

D:\PACL_Test>

Looks like it's working with quote in password as long as you put the password in a file.

Test result: OK with remark

The user should not have to put the password in a textfile to use quote in the password. On the other hand the workaround by using a textfile will solve the problem with quote in the password.

Since I'm not sure what the expected result would be, but from the post of spwolf I get the impression that it should be possible now to use quote in a password when using PACL 6.02 even without a password stored in a textfile.

Kind Regards
Micke

Micke 02-05-2012 08:36 AM

Hi!
I have now retested this using PACL 7.00 beta 1. As before I have tried to create a archive with a quote in password. Here's the result from the test

Create a archive with password = aa"a

Code:

C:\PACL_Test\Amiga>pacomp -a -saa"a -e2 -p Test1.zip REFSCAN*.*
PowerArchiver Command Line (PACL)              Version 7.00      [Jan 29 2012]
Copyright(c) 1998-2012 ConeXware, Inc.  All Rights Reserved.  Shareware Version
Archive Compression Utility -- ZIP,ZIPX,7-ZIP,CAB,LHA,BH,JAR,TAR,GZIP,BZ2,XZ,LZM
A
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Example PACOMP commands:
------------------------

  pacomp -a docs.zip "c:\my documents\*.doc"
      Compress all *.doc files from  "c:\my documents" directory to archive
      docs.zip

  pacomp -a -ssecret -c0 -p -r stuff.bh "c:\my stuff\*"
      Compress all files from "c:\my stuff" directory and subdirectories to
      archive stuff.bh with no compression and with password "secret"

Press ENTER to continue:

PACOMP won't accept quote in password. Next thing try using ^"

Code:

C:\PACL_Test\Amiga>pacomp -a -saa^"a -e2 -p Test1.zip REFSCAN*.*
PowerArchiver Command Line (PACL)              Version 7.00      [Jan 29 2012]
Copyright(c) 1998-2012 ConeXware, Inc.  All Rights Reserved.  Shareware Version
Archive Compression Utility -- ZIP,ZIPX,7-ZIP,CAB,LHA,BH,JAR,TAR,GZIP,BZ2,XZ,LZM
A
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Example PACOMP commands:
------------------------

  pacomp -a docs.zip "c:\my documents\*.doc"
      Compress all *.doc files from  "c:\my documents" directory to archive
      docs.zip

  pacomp -a -ssecret -c0 -p -r stuff.bh "c:\my stuff\*"
      Compress all files from "c:\my stuff" directory and subdirectories to
      archive stuff.bh with no compression and with password "secret"

Press ENTER to continue:

Still no success. I then try put the password in a file.

Content of password.txt
Code:

aa"a
I then create the archive
Code:

C:\PACL_Test\Amiga>pacomp -a -s@password.txt -e2 -p Test1.zip REFSCAN1.PCX
PowerArchiver Command Line (PACL)              Version 7.00      [Jan 29 2012]
Copyright(c) 1998-2012 ConeXware, Inc.  All Rights Reserved.  Shareware Version

Remainder: This is unregistered version of PACL. Please register at http://www.p
owerarchiver.com
Press <ENTER> to continue.

Archive Compression Utility -- ZIP,ZIPX,7-ZIP,CAB,LHA,BH,JAR,TAR,GZIP,BZIP2
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive: C:\PACL_Test\Amiga\Test1.zip
  preparing to compress...
  adding: REFSCAN1.PCX  --> Done. [100%]

All OK

C:\PACL_Test\Amiga>

Looks like it working properly. Now I try test the created archive to check that the password is set correctly.

Code:

C:\PACL_Test\Amiga>paext -t Test1.zip
PowerArchiver Command Line (PACL)              Version 7.00      [Jan 29 2012]
Copyright(c) 1998-2012 ConeXware, Inc.  All Rights Reserved.  Shareware Version

Remainder: This is unregistered version of PACL. Please register at http://www.p
owerarchiver.com
Press <ENTER> to continue.

Archive Extr.---ZIP,ZIPX,7Z,CAB,LHA,ARJ,RAR,ACE,TAR,GZ,BZ2,UUE,ZOO,B64,YENC,...
  Internet: http://www.powerarchiver.com  Email: support@conexware.com

Archive --> C:\PACL_Test\Amiga\Test1.zip [ZIP]

  testing: REFSCAN1.PCX  Enter password for REFSCAN1.PCX: aaa

  *** Message: Invalid password  aaa
Enter password for REFSCAN1.PCX: aa"a
--> OK [100%]

C:\PACL_Test\Amiga>

PACL works the same in 7.00 b1 as in 6.02. It's possible to use quote in a password as long as you put the password in a text file.

Kind Regards
Micke

Mili 02-07-2012 06:22 PM

Thanks Micke!

spwolf 03-29-2012 09:39 PM

this is due to the CL, we can not use all the characters in command prompt due to its limitations, so we have to use password list if you really want to be creative.

Micke 03-30-2012 01:34 AM

Thanks for the info and since it's working when putting the password in a textfile.

Kind Regards
Micke


All times are GMT -5. The time now is 11:17 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.