Endpoint Encryption

 View Only
  • 1.  How to prompt for passphrase in PGP command line 9.x

    Posted Apr 19, 2012 02:52 PM

    We are using PGP Command Line 9.6 build 176. Trying to get the option for prompting for passphrase (like other PGP software in the market). Is there an option for it? If not how to hide the passphrase being typed in the shell?



  • 2.  RE: How to prompt for passphrase in PGP command line 9.x

    Posted Apr 19, 2012 03:23 PM

    I´m no sure if I got the idea.....

    Prompting for passphrase is not an option, is a requirement (depending the operation you want to perform.)

    PGP CL was not designed to end users. Just to make encryption processes transparent to them.

     

    You have a couple of options:..

    --truncate-passphrase
    Truncates all passphrases at the first newline, which is compatible with how GPG
    handles passphrases.
    The default is FALSE.
    Example:
    pgp --er <user> --passphrase-fd <fd> --truncate-passphrase
    Truncates passphrases used in this operation at the first newline.

    --passphrase-cache
    Enables the passphrase cache. The default is off.
    This option does not work with --local-mode.

     

    If you are running scripts...

    You can create a direct access, which will point to pgp.exe +parameters. Anyone who sees link properties, will see the password, though.

    You can compile them in exe file(using Borland C+, for example) , which has not readable format.



  • 3.  RE: How to prompt for passphrase in PGP command line 9.x

    Posted Apr 20, 2012 01:34 AM

    PGP Command Line was designed for scripted environments.  It will never prompt for input.

    There are a number of other ptions for providing the passphrase:

    1.  Use the PGP_PASSPHRASE environment variable

    2.  Use the "--passphrase-fd" (or --passphrase-fd8 on Windows) option

    3.  Enter it once and keep it cached