Since iOS does not support native GPG in the terminal, you need a third-party app:
- iPGMail – Paid app for managing PGP keys and encryption/decryption.
- PGPro – Free, allows signing and encryption.
- OpenKeychain (via iSH Terminal) – Works if using a Linux shell on iOS.
Inside the app:
- Go to Key Management.
- Click Create New Key.
- Set a name, key size (4096-bit RSA recommended), and passphrase.
- Save the key and back it up.
Download or copy the public key to your iPhone.
Using iPGMail:
- Go to Key Management → Import Key.
- Select the key file (
.asc
) and import it.
To export a public key:
- Go to Key Management in iPGMail.
- Select your key → Click Export.
- Send or save the exported
.asc
file.
To encrypt a message:
- Open iPGMail or PGPro.
- Go to Encrypt → Enter the message.
- Select the recipient’s public key.
- Encrypt and copy the output.
To decrypt a message:
- Paste the encrypted text in the decrypt section.
- Select your private key.
- Enter your passphrase.
- Decrypt and view the message.
To sign a message:
- Open PGPro or iPGMail.
- Go to Sign Message and enter your text.
- Use your private key to sign the message.
To verify a signed message:
- Paste the signed message into the Verify section.
- Use the sender’s public key to check the signature.
- Open iPGMail.
- Go to Encrypt File.
- Select the recipient’s key.
- Save or share the encrypted file.
- Open the encrypted file in iPGMail.
- Select your private key.
- Enter your passphrase.
- View or export the decrypted file.
- Go to Key Management in iPGMail.
- Export and save your public and private keys.
- Transfer them securely to a backup device.
- Import your .asc key file back into iPGMail.