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!


  • Alpha Testers

    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.

    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

    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


  • conexware

    micke try c1 or c2 and see how it goes…


  • conexware

    @Halvar:

    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

    got it, thanks Halvar!!


  • Alpha Testers

    Hi!

    @spwolf:

    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

    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

    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

    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

    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

    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

    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

    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

    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:

    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

    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


  • conexware

    ok, np… thank you!


  • conexware

    @Halvar:

    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

    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

    -s@filename to pickup password from file…


  • Alpha Testers

    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

    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 ^"
    

    D:\PACL_Test>pacomp -a -saa^"a -e2 -p Test3.zip PICT0030.jpg
    PowerArchiver Command Line (PACL) Version 6.02 [Oct 10 2010]
    Copyright© 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:

    
    Content of password.txt
    

    aa"a

    I then create the archive
    

    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© 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>

    D:\PACL_Test>paext -t Test3.zip
    PowerArchiver Command Line (PACL) Version 6.02 [Oct 10 2010]
    Copyright© 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>

    
    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

  • Alpha Testers

    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

    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 ^"

    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

    aa"a
    
    

    I then create the archive

    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></enter> 
    

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

    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></enter> 
    

    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


  • conexware

    Thanks Micke!


  • conexware

    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.


  • Alpha Testers

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

    Kind Regards
    Micke


 

8
Online

9.8k
Users

6.0k
Topics

36.8k
Posts