Next: Architecture, Previous: Prerequisites, Up: Top

## 3 How to use

The toplevel interface of this library is quite simple, and only intended to use with public-key cryptographic operation.

To use PGG, evaluate following expression at the beginning of your application program.

         (require 'pgg)

If you want to check existence of pgg.el at runtime, instead you can list autoload setting for desired functions as follows.

         (autoload 'pgg-encrypt-region "pgg"
           "Encrypt the current region." t)
         (autoload 'pgg-encrypt-symmetric-region "pgg"
           "Encrypt the current region with symmetric algorithm." t)
         (autoload 'pgg-decrypt-region "pgg"
           "Decrypt the current region." t)
         (autoload 'pgg-sign-region "pgg"
           "Sign the current region." t)
         (autoload 'pgg-verify-region "pgg"
           "Verify the current region." t)
         (autoload 'pgg-insert-key "pgg"
           "Insert the ASCII armored public key." t)
         (autoload 'pgg-snarf-keys-region "pgg"
           "Import public keys in the current region." t)