Abertay Ethical Hacking Society
  • Home
  • Information
    • Constitution
    • Change Logs
      • Website
      • Discord
      • Github
      • Server
    • Meetings
      • 2021-2022
    • Honourary Members
  • Contributing
    • Contributions
      • Using Git
      • Formatting and Best Practise
  • Society Events
    • Securi-Tay
      • History
  • Help Guides
    • Programming / Scripting
      • AWK
      • Bash Scripting
      • C Coding
      • Java Coding
      • LaTeX
      • Markdown
      • Project Ideas
      • Python Scripting
      • Tools
    • Software
      • Operating Systems
        • Installing Arch
        • Installing Kali
        • Linux Commands for Beginners
        • MacOS
      • Tools
        • PGP
          • A guide to using PGP on Android
          • A guide to using PGP on macOS
          • PGP
        • Radare2
        • Nmap
        • Regular Expressions
        • The Browser Exploitation Framework (BeEF)
        • Vim
        • Vimium
        • Zsh
    • Networking
      • Domain Name System (DNS)
      • Remote access to your Abertay network drive
      • Secure Shell (SSH)
      • TLS 1.3
      • Wireshark
      • Subnetting
    • Techniques
      • A guide to creating malicious macro-enabled Excel worksheets
      • Open Source Intelligence (OSINT)
      • Google-Fu
    • Jobs
      • Common Interview Questions
    • Home Lab
      • PiHole
  • Glossary
    • Infosec Terms
    • Computing Terms
    • Hardware Terms
    • General Terms
    • Development Terms
    • Networking Terms
  • Members
    • Profiles
      • AG
      • Isaac
      • Sam
  • Other
    • Other
      • Data Dumps
      • Meetups
      • Meltdown & Spectre
      • Movies
      • Project topic suggestions
      • Recommended Reading
Powered by GitBook
On this page
  • Ingredients
  • Open Keychain
  • Setup
  • Verifying keys
  • K-9 mail
  • Setup
  • Writing encrypted emails

Was this helpful?

  1. Help Guides
  2. Software
  3. Tools
  4. PGP

A guide to using PGP on Android

PreviousPGPNextA guide to using PGP on macOS

Last updated 3 years ago

Was this helpful?

This guide was written and tested on Android 5, and according to the authors of used applications, should also work for Android 4.0.3+. Additionally, for Open Keychain, permissions will be requested on the go in Android 6+.

Ingredients

  1. Open Keychain - Essential. Handles key management and the actual decryption, other apps just use it's API to work with PGP

  2. Communication app of your choice. This guide will use K-9 Mail, but a are available.

  3. Password Manager - Highly recommended, but not necessary. For convenience, use a password manager with support for the same password database format as on the desktop. All of , and have Android versions.

Open Keychain

Setup

  1. Use or to download Open Keychain

  2. Get a PGP key pair on the device

    1. Click on the three dots in the upper right of the screen

    2. Choose Manage my keys

    3. Choose the appropriate option:

      • Import key from file

        Do NOT upload your private key to a cloud unencrypted. Transfer your existing PGP key to the phone via USB instead

      • Create my key

    4. Follow the instructions in the app

  3. Import your contact's keys onto the device

    • Use the + in the lower right of the screen

  4. Check the status of the imported contact

Key

Verified

Unverified

Insecure

Symbol

green tick

grey X

Background

green or photo

orange

red

  • Keys will be unverified by default, unless you import a key with your, or another verified key's signature on it

Verifying keys

  1. Press on a key to open contact view

  2. If your contact uses QR codes, use them. Otherwise:

    1. Press the three dots in the upper right corner

    2. Confirm with fingerprint

    3. Compare the fingerprint of the key with one provided by your contact

      Note: Full fingerprints are rarely provided. Commonly only the last 8 or 16 hex digits(aka. key ID) are

  3. Sign the key to verify it

  • Check beforehand, if the key's owner wants it published and whether you want to publicly admit knowing them. Adjust the “Synchronize with the Internet” tick accordingly

  • Untick the identities you don't want to sign

  • Choose with which of your keys you want to sign the key with

Further information on Open Keychain is available in the Help section of the app, available under the hamburger(upper left corner).

K-9 mail

Setup

  • Go to Three dots(lower right corner) > Settings > Account settings

  • Scroll to the bottom

  • Go to Cryptography

  • Choose Open Keychain as your PGP app

    1. Open Keychain will ask you to confirm granting K-9 access to the PGP API

    2. Allow it

  • Choose your key

Writing encrypted emails

When composing a new email, you will now see a lock next to your email address. The lock will change according to PGP is used:

  • A white tick on a blue circle when the email will be signed, but not encrypted

  • A green lock with 3 full circles when all recipient keys have verified keys in your keychain

  • A grey, crossed lock and a single red dot when no recipient keys are among those verified in the keychain

The number of dots is also displayed next to each recipient separately. You can press the lock to change the encryption mode. The default is encrypt if possible and in it emails will be sent encrypted and unencrypted. You can also switch it to Don't Encrypt or Encrypt. In the last case, the email will fail to send if any recipient lacks a verified key in the keychain. That situation is indicated with a red lock with a white x and a singe red dot.

After pressing send, if the lock is green, Open Keychain will fire up to ask you for your PGP passphrase. Upon entering it, K-9 will send the encrypted message.

After imported

orange

Facebook confirmed
Facebook unconfirmed
Verify keys
Compare fingerprint screen
Confirm keys

is a fork of the Android Mail with a long history. It was chosen for the guide thanks to it's excellent integration with Open Keychain that allows you to encrypt all emails in just 3 more clicks per email, plus some initial setup.

K-9 Mail is available for download on and .

Configure your account conventionally(IMAP/Exchange + SMTP). Refer to when necessary

K-9 mail
F-Droid
Play store
the documentation
number of other options
KeePass(.kbd & .kbdx)
PasswordSafe(.psafe3)
PasswordStore
Open Keychain
F-Droid
Play Store
Before imported
:?:
Manage My Keys