Make PGP Encryption Easy
 
 
How to use the ezPGP  

About PGP

Pretty Good Privacy (PGP) is a data encryption and decryption computer program that provides cryptographic privacy and authentication for data communication. PGP is often used for signing, encrypting and decrypting texts, E-mails, files, directories and whole disk partitions to increase the security of e-mail communications. It was created by Phil Zimmermann in 1991.

PGP encryption uses a serial combination of hashing, data compression, symmetric-key cryptography, and, finally, public-key cryptography; each step uses one of several supported algorithms. Each public key is bound to a user name and/or an e-mail address. (The above abstract from http://en.wikipedia.org/wiki/Pretty_Good_Privacy)

OpenPGP is the most widely used email encryption standard in the world. It is defined by the OpenPGP Working Group of the Internet Engineering Task Force (IETF) Proposed Standard RFC 4880. The OpenPGP standard was originally derived from PGP (Pretty Good Privacy), first created by Phil Zimmermann in 1991.

The OpenPGP Alliance is a growing group of companies and other organizations that are implementers of the OpenPGP Proposed Standard. The Alliance works to facilitate technical interoperability and marketing synergy between OpenPGP implementations. (The above abstract from http://www.openpgp.org)

Using ezPGP

ezPGP is OpenPGP Compliant software. You can use it to protect your files, folders, emails..etc.

PGP Encryption is based on the asymmetric algorithm which uses public key to encrypt data and then uses private key to recover (decrypt) the data. You don't need to have much knowledge about cryptograpghy. Just remember:

  • Using public key to encrypt data and using private key to decrypt it. This is to protect the data from peeking.
  • Using private key to sign the data and using public key to verify it, This is to prove identification and tamperless.
  • Private key is kept in privacy by yourself, never expose it to other people. Public key can be exposed to any people that you want to exchange sensitve data with.

If you need PGP Encryption automatically by batch or program, you can use ezPGP Command Line or ezPGP API.

If you don't want to install any program on client machine, you can deploy ezPGP CryptoServer on back-end and use browser (IE or Firefox) on client machine

No matter what ezPGP products you choose, the basic steps you need to know are:

  • Step1: Generating a key pair (public key and private key) for yourself. You can use "ezgenkey.exe" command or API to do it.
  • Step2: Exporting your public key and send it to your partner. You can use "ezkeyexp.exe" command or API to do it
  • Step3: Importing the public key of your partner. You can use "ezkeyimp.exe" command or API to do it.

    (You just need to do the step 1 only once, and for each partner do the step 2 and step 3 once.)

  • Step4: After you have exchaged public key with your partner, you can do PGP encryption by using "ezencrypt.exe" or API and PGP Decryption by using "ezdecrypt.exe" or API.

Samples

Using Command (No interactive action so you can use it in your program)

  • To generate a PGP key pair:

ezkeygen.exe keyname email key_type key_length expired_days password

  • To export a PGP public key:

ezkeyexp.exe keyname keyfile

  • To import a PGP public key:

ezkeyimp.exe keyfile

  • To encrypt a file:

ezencrypt.exe infile outfile key1 key2....

  • To decrypt a file:

ezdecrypt.exe infile outfile password

Using Win32 API (You can call all APIs through any popular programming languages

  • VB sample codes of encrypting and decrypting files

PGP API code

  • C# sample codes of encrypting and decrypting files

PGP API C Sharp code

For detail, please contact us via info@asiapeak.com.


 
 
© Copyright 2010-2011 Asiapeak Information Technology Inc.