Endpoint Encryption

 View Only
  • 1.  decrypt text instead of a file?

    Posted Sep 28, 2012 04:19 PM

    Documentation for Encrypt command says   "Input is either the standard input or a list of files" .  Does this also apply to Decrypt ?

    Background :

    I am using PGP Command Line 10.

    The following works ok :

    pgp  --decrypt "C:\input.pgp" --passphrase "xx" --output "C:\Users\xxx\AppData\Local\Temp\17951a62-a0b9-4912-95a3-3132f8c72f77.out" --overwrite remove --home-dir "C:\PGP\pgphomedir

    I would like to use Standard Input instead of a input file.

      Thanks, Peter

     



  • 2.  RE: decrypt text instead of a file?

    Posted Sep 28, 2012 06:51 PM

    Yes, in general things like this work:

    cat input | pgp -er recpient --input - --output - | <do something with the output>

    Regards,



  • 3.  RE: decrypt text instead of a file?

    Posted Oct 01, 2012 12:56 PM

    Doesn't work for me.

    Instead of using a input file name, I tried to write the text to standard input , but I get this error :

     3000:no input file specified)\r\n"

    I suspect the --decrypt behaves differently than --encrypt.

     

    Peter



  • 4.  RE: decrypt text instead of a file?

    Posted Oct 01, 2012 07:29 PM

    Can you provide some more details?  E.g. the following works for me:

    pgp -er recipient file.txt

    cat file.txt.pgp | pgp --decrypt --input - --passphrase pass -o copy.txt

    What exact version are you running, and on what platform?

    Thanks.



  • 5.  RE: decrypt text instead of a file?

    Posted Oct 01, 2012 08:09 PM

    My original questions listed a working decrypt command.

    If I  replace the input file with standard input, I get the error 3000:no input file specified)\r\n" Example :

    pgp  --decrypt  --passphrase "xx" --output "C:\Users\xxx\AppData\Local\Temp\17951a62-a0b9-4912-95a3-3132f8c72f77.out" --overwrite remove --home-dir "C:\PGP\pgphomedir



  • 6.  RE: decrypt text instead of a file?

    Posted Oct 01, 2012 11:49 PM

    You are not providing any input to decrypt.  For stdin, you need to use "--input -" as in the example I gave.

    Regards,



  • 7.  RE: decrypt text instead of a file?
    Best Answer

    Posted Oct 02, 2012 12:07 PM

    Excellent . That fixed it.



  • 8.  RE: decrypt text instead of a file?

    Posted Oct 02, 2012 05:51 PM

    Great, glad you got that working.