Android Privacy Guard (APG) is free and open source software, created by Thialfiar, that allows you to encrypt and decrypt files and email messages on Android devices. Although not all features of OpenPGP are currently available, APG's implementation allows you to encrypt, decrypt and sign files and messages using a public/private key pair. You can also encrypt individual files without a public/private key pair by relying on symmetric encryption and a strong passphrase. For email encryption, we recommend that you use APG in combination with K9 Mail, an email client for Android devices.
The ability to use encryption for single files and for email communication.
If you do not already have your private and public GPG key or wish to use a separate GPG keys for your Android device you can use APG to create them.
Step 1: When you open APG for the first time click the
button.
Step 2: Wait 2 - 3 minutes while your GPG keys are generated. You will be able to assign your name and email address to the key in the next step.
Step 3: In the following screen (Figure 4).
- we strongly recommend that you protect your GPG keys with password. To do this press
and provide strong password; - fill in your name, email address;
- it is important that you set an expiry date on the GPG keys, after which time the keys can no longer be used to encrypt files.

Figure 4: GPG Key information
Step 4: Once all the information is correct, tap
at the top of the screen to be brought back to the main APG screen, where you will see a list of all your keys (see Figure 4).
To use GPG keys that you created on another device or computer, or to import the public keys of your contact:
Step 1: Copy the GPG key(s) to your Android device via USB or save them from the email that you received on the Android device.
Step 2: In APG, click the
button.
Step 3: On the following screen click the
button at the top of your screen to open a file browser.
Step 4: From the file browser, select the key(s) you wish to import.
Step 5: Review the keys you will import and tap
to add the GPG keys to APG. You may decide which keys you do not wish to import by deselecting appropriate checkbox for the keys.

Figure 5: APG key import review screen
Step 6: Once you have imported all the desired GPG keys you will be brought back to the main screen where you will see a list of all your keys.

Figure 6: APG key list
GPG keys can be sent in the body of an email instead of as an attachment to import a key.
Step 1: Copy the GPG key from your email to the clipboard.

Figure 7: GPG key in the body of an email
Step 2: Open APG and expand the side menu on any APG screen by pressing
at the top left of your screen.
Step 3: Select
to bring up the import key screen.
Step 4: Tap
at the top of the screen to display the import options menu and select
.
Step 5: Tap
to copy the key from the clipboard.
Step 6: Tap
at the bottom of the screen to finish importing the key into APG.


Figure 8 & 9: APG Import options / GPG key copied from clipboard
In order for your contacts to be able to send you encrypted email, you will first need to send them your public key.
APG provides two ways for you to encrypt files on your Android device. Public key encryption is the desired option to use when sending files to other people as you will not have to share any passphrase with them. However you will need to receive public key from each person you wish to encrypt files to in advance. Passphrase encryption can be useful to be able to decrypt a file at a later date without the need to have access to a public key. But this method require sharing the passphrase used to encrypt the file in order to decrypt it later.
Message encryption in APG can be useful if you want to store encrypted notes in another application or send encrypted email or message via a service that you can not use K-9 Mail with (eg. webmail, social networking message, etc.).

.
and the installation will complete. If you do not agree with the permissions that will be granted, press the back button and the installation will be cancelled.

to display the menu and select
.
.

to bring up sharing options and select
.
to copy your GPG public key to the clipboard:

to bring up the encryption screen.
. Note: If you want to be able to decrypt the message at a later time, you will need to remember to include yourself in the list of recipients.
.
will allow you to send the encrypted message to another application on your phone such as an email client. Tapping
will copy the encrypted message to your clipboard allowing you to paste the message anywhere that you can paste, such as an online forum.
or
buttons to either side of PUBLIC KEY to change the encryption type to PASSPHRASE.
to bring up the encryption screen.
to open the file browser and select the file you want to encrypt.
to choose a file name and location to save the file to.
to complete the encryption process.

after which you will be prompted for your GPG keys password if public key encryption was used or for the file password if you used the passphrase encryption.



