PowerArchiver Home

  #1  
Old 05-25-2010, 08:06 AM
Halvar Halvar is offline
Junior User
 
Join Date: May 2010
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
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!
Reply With Quote
The Following User Says Thank You to Halvar For This Useful Post:
spwolf (05-30-2010)
  #2  
Old 05-30-2010, 04:39 PM
Micke's Avatar
Micke Micke is offline
PA Super User
 
Join Date: Feb 2010
Location: Sweden
Posts: 131
Thanks: 11
Thanked 52 Times in 40 Posts
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 .

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
Reply With Quote
The Following User Says Thank You to Micke For This Useful Post:
spwolf (05-30-2010)
  #3  
Old 05-30-2010, 07:12 PM
spwolf's Avatar
spwolf spwolf is offline
Administrator
 
Join Date: Jun 2001
Posts: 7,823
Thanks: 682
Thanked 207 Times in 192 Posts
micke try c1 or c2 and see how it goes...
__________________
ConeXware, Inc.
latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver.
Reply With Quote
  #4  
Old 05-30-2010, 07:13 PM
spwolf's Avatar
spwolf spwolf is offline
Administrator
 
Join Date: Jun 2001
Posts: 7,823
Thanks: 682
Thanked 207 Times in 192 Posts
Quote:
Originally Posted by Halvar View Post
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...
__________________
ConeXware, Inc.
latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver.
Reply With Quote
  #5  
Old 05-31-2010, 08:20 AM
Mili Mili is offline
Moderator
 
Join Date: Nov 2007
Posts: 595
Thanks: 200
Thanked 53 Times in 50 Posts
got it, thanks Halvar!!
Reply With Quote
  #6  
Old 05-31-2010, 01:39 PM
Micke's Avatar
Micke Micke is offline
PA Super User
 
Join Date: Feb 2010
Location: Sweden
Posts: 131
Thanks: 11
Thanked 52 Times in 40 Posts
Hi!

Quote:
Originally Posted by spwolf View Post
micke try c1 or c2 and see how it goes...
I don't know what that parameter (c1, c2) does . 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.

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

Kind Regards
Micke
Reply With Quote
  #7  
Old 05-31-2010, 01:55 PM
spwolf's Avatar
spwolf spwolf is offline
Administrator
 
Join Date: Jun 2001
Posts: 7,823
Thanks: 682
Thanked 207 Times in 192 Posts
ok, np... thank you!
__________________
ConeXware, Inc.
latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver.
Reply With Quote
  #8  
Old 10-07-2010, 03:05 AM
spwolf's Avatar
spwolf spwolf is offline
Administrator
 
Join Date: Jun 2001
Posts: 7,823
Thanks: 682
Thanked 207 Times in 192 Posts
Quote:
Originally Posted by Halvar View Post
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?
__________________
ConeXware, Inc.
latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver.
Reply With Quote
  #9  
Old 10-08-2010, 06:44 AM
spwolf's Avatar
spwolf spwolf is offline
Administrator
 
Join Date: Jun 2001
Posts: 7,823
Thanks: 682
Thanked 207 Times in 192 Posts
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!
__________________
ConeXware, Inc.
latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver.
Reply With Quote
  #10  
Old 10-08-2010, 06:44 AM
spwolf's Avatar
spwolf spwolf is offline
Administrator
 
Join Date: Jun 2001
Posts: 7,823
Thanks: 682
Thanked 207 Times in 192 Posts
-s@filename to pickup password from file...
__________________
ConeXware, Inc.
latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver.
Reply With Quote
  #11  
Old 10-19-2010, 02:18 PM
Micke's Avatar
Micke Micke is offline
PA Super User
 
Join Date: Feb 2010
Location: Sweden
Posts: 131
Thanks: 11
Thanked 52 Times in 40 Posts
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
Reply With Quote
  #12  
Old 02-05-2012, 08:36 AM
Micke's Avatar
Micke Micke is offline
PA Super User
 
Join Date: Feb 2010
Location: Sweden
Posts: 131
Thanks: 11
Thanked 52 Times in 40 Posts
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
Reply With Quote
The Following User Says Thank You to Micke For This Useful Post:
Mili (02-07-2012)
  #13  
Old 02-07-2012, 06:22 PM
Mili Mili is offline
Moderator
 
Join Date: Nov 2007
Posts: 595
Thanks: 200
Thanked 53 Times in 50 Posts
Thanks Micke!
Reply With Quote
  #14  
Old 03-29-2012, 09:39 PM
spwolf's Avatar
spwolf spwolf is offline
Administrator
 
Join Date: Jun 2001
Posts: 7,823
Thanks: 682
Thanked 207 Times in 192 Posts
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.
__________________
ConeXware, Inc.
latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver.
Reply With Quote
The Following User Says Thank You to spwolf For This Useful Post:
Micke (03-30-2012)
  #15  
Old 03-30-2012, 01:34 AM
Micke's Avatar
Micke Micke is offline
PA Super User
 
Join Date: Feb 2010
Location: Sweden
Posts: 131
Thanks: 11
Thanked 52 Times in 40 Posts
Thanks for the info and since it's working when putting the password in a textfile.

Kind Regards
Micke
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FIXED] Dont remember "highlight archives"-PA2007 10.20.05b3 Virtual_ManPL Tech Support 8 08-12-2007 05:47 PM
show "Enter Password/Reenter Password" in one window masu Wishlist 5 03-18-2007 10:00 AM
PBS "archive attribute" settings prevent "full" backup jsjansen Wishlist 0 07-20-2004 03:08 PM


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


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