Endpoint Encryption

 View Only
  • 1.  PGP command

    Posted May 07, 2013 07:45 AM

    Hi Everybody,

     

    I am very new to use the PGP Command

    Today I installed the PGP command software

    After I installed the Lincese also

    My requirement is transfer the .csv files from one sever to another FTP location

    Please guide me how to proceed for this

    Please steps to follow for this

     

    Regards

    Rao



  • 2.  RE: PGP command

    Posted May 07, 2013 09:11 AM

    Hi Rao,

    What are you trying to encrypt?  You want commandline to encrypt before sending it off to an FTP server is that correct?



  • 3.  RE: PGP command

    Posted May 07, 2013 10:15 AM

    We have 2 .csv files need to be encrypt and send to FTP server.

    Please suggest me the what are the steps to be follow

     



  • 4.  RE: PGP command

    Posted May 07, 2013 11:39 AM

    Is it going to be a manual process or do you want to automated it?  What operating system are you using?  Do you need it scripted to automatically send it to the FTP server?



  • 5.  RE: PGP command

    Posted May 08, 2013 12:31 AM

    Hi,

    I want to use the command prompt, to encrypt and decrypt and generating the keys.

    What are the steps to follow for sending the data to FTP server (with encrpted and with keys)

    We have win 2003 server,

     

     

     



  • 6.  RE: PGP command

    Posted May 08, 2013 06:14 AM

    To create keypair:

     

    On the command line, enter:
    pgp --gen-key <user> --key-type <type> --encryption-bits <bits> --passphrase <pass> [--signing-bits <bits>] [options]
    where:
    <user> is a user ID that people can use to locate your public key. A common user ID is your name and email address in the format: "Alice Cameron <alice@example.com>". If your user ID contains spaces, you must enclose it in quotation marks.
    <type> means you are creating either an RSA or a DH key.
    <bits> is the number of bits of the key (usually 1024 to 4096). Per FIPS 186-3, DSA keys can be 1024, 2048, or 3072 bits.
    <passphrase> is a passphrase of your choice.
     
    By default on Windows itll create the keypairs in C:\Documents and Settings\<current user>\My
    Documents\PGP - remember to back these up and secure them!
     
    To encrypt a file:
     
    pgp --encrypt <input> [<input2> ...] --recipient <user> [-r <user2> ...] [options]
     
    Where:
    <input> is the name of the file to be encrypted. It is required. You can encrypt multiple files by listing them, separated by a space. The default output filename for an encrypted file is <input filename>.pgp. Note that stdin can be used only by itself and cannot be combined with other inputs.
    <user> is the user ID, portion of the user ID, or the key ID of the recipient. It is required. The public key of the recipient must be on the keyring. You must specify a recipient; you cannot encrypt to your own key by not specifying a recipient. You can encrypt the file to multiple recipients by listing them, separated by a space.
    [options] let you modify the command. Options are:
    --adk can be used only together with the option --sda. Note that if any of the keys used with the option --adk have ADKs, they will also be used. --anonymize hides the key IDs of recipients. This allows you to encrypt to multiple recipients without any of the recipients being able to see who else
    the data was encrypted to when they decrypt it.
    --archive saves the output as an archive. It cannot be used with the options --text-mode or --sda. When using --archive, directories can be in the input file: without this option, the directories are skipped.
    -a or --armor armors the encrypted file.
    --cipher. If the option --cipher is used, the existing cipher will be forcefully overridden and the key preferences and algorithm lists in the SDK will be ignored. This can create messages that don’t comply with the OpenPGP standard. This option must be used together with the option --force.
    --comment saves a comment at the beginning of the file with the header tag "Comment". It works only if --armor is specified as well.
    --compress toggles compression. If enabled, the preferred compression algorithm of the recipient is used.
    --compression-algorithm. If the option --compressionalgorithm is used, the existing compression algorithm will be forcefully overridden and the key preferences and algorithm lists in the SDK will be ignored. This can create messages that do not comply with the OpenPGP standard. This option must be used together with the option --force.
    --email processes input data as an RFC 822-encoded email message, which means that MIME headers and CRLF line endings will be respected by PGP Command Line. The resulting file has a .pgp extension. Note that PGP Command Line does not send the resulting encrypted message, it only
    creates it.
    --encrypt-to-self lets you encrypt to the default key in addition to any other specified keys. The default is off.
    --eyes-only. Text inputs that are processed using this option can only be decrypted to the screen.
    --force required to use --compression-algorithm and --cipher.
    --input-cleanup cleans up the input file, depending on the arguments you specify: off (default), remove, or wipe.
    --output lets you specify a different name for the encrypted file.
    --overwrite sets the overwrite behavior when PGP Command Line tries to create an output file that already exists. This option accepts the following arguments: off (default), remove, rename, or wipe.
    --root-path can only be used with either --sda or --archive.
    --sda cannot be used together with the command --sign (such as -es). For more information, refer to the option --sda.
    --sign lets you sign the encrypted file.
    --temp-cleanup cleans up the temporary file(s) depending on the arguments you specify: off, remove, or wipe (default). For large encryption jobs, this option should be set to remove to speed up the process.
    --text forces the input to canonical text mode. Do not use with binary files (automatic detection of file types is not supported).
    -v |--verbose gives a verbose (detailed) report about the operation.
     
    Examples:
    1 pgp --encrypt report.txt README.rtf -r "Bill Brown" -r "Mary Smith" -r "Bob Smith"
    The files "report.txt" and "README.rtf" are encrypted to multiple recipients.
    2 pgp -er "Bob Smith" report.txt --eyes-only
    The output file "readme.txt.pgp" is encrypted for Bob’s "eyes only", which
    means that he can read the file only on the screen.

     

    You can then batch script this to interact with ftp.exe to send the file away encrypted to where you want



  • 7.  RE: PGP command