#19 Piping char in ccguess

v1.0_(example)
closed-works-for-me
nobody
None
2
2014-04-09
2014-04-09
Kob
No

Although ccrypt -e / -d do accept passwords (using the -K switch) which contain the pipe char (|), ccguess does not: it attempts to actually pipe the prior entry to an unrecognized bogus command.

No biggie by any means, just FYI.

Discussion

  • Kob

    Kob - 2014-04-09

    Forgot to add: tested V.1.10 under WIN 7

     
  • Peter Selinger

    Peter Selinger - 2014-04-09
    • status: open --> closed-works-for-me
     
  • Peter Selinger

    Peter Selinger - 2014-04-09

    Thanks for writing. Could you please be more specific about what you typed? It sounds to me like an incorrect use of shell or command line syntax, rather than a bug in ccguess. The pipe character is treated as a special character by the shell, so you have to use quotes if you want to use it as part of a string. The following works for me, both in the bash shell and the Windows Command Prompt:

    ccrypt somefile -K "a|b"
    ccguess somefile.cpt -K "a|b"

    Please let me know if this doesn't solve your problem. Thanks, -- Peter

     
  • Kob

    Kob - 2014-04-09

    Thanks for the quick response.
    I made a reporting mistake: for the ccrypt-e / -d switches, I did not enter the PW with the pipe char in line with the K switch, but provided it in the subsequent shell prompt. Evidently, no need for quotes there. However, when trying out ccguess, I did provide the approximate PW in line with the K switch, and there, as you indicated, I do need the quotes for proper operation (I was under the wrong impression that only ASCII printable strings with the space char require quotes).

    So now the behavior of both ccrypt and ccguess is consistent and good.
    P.S. while trialling the above, I did run into a bug with ccguess - I am listing it now under a new bug entry.

     

Log in to post a comment.