Skip to Content
PAPAMO / DOCS

Encryption and access

How pSMS keeps your messages private, and what each key and token can do.

End-to-end encryption

The iPhone shortcut encrypts each message's sender and text together with your archive key before sending. The server, whether papamo.dev or your own computer, checks the envelope's format and stores it as is. Messages are opened only where you unlock them: your browser, the desktop app, the CLI or MCP with a key file.

The envelope is AES-256-GCM: base64(12-byte nonce ‖ ciphertext and tag). The plaintext is JSON: {"sender": "…", "body": "…"}, with "direction": "out" for replies you sent. Contact cards and queued replies use the same envelope. To open envelopes in your own code, see Decrypt a message.

Your recovery words

The 12 recovery words (also printed in your recovery kit PDF) are your archive key. They're a BIP39 phrase for 16 bytes, which written as hex give the 32-character key; those 32 characters are the AES key, with no further derivation. See how the words become the key. Anyone with them can read your messages, and without them nobody can, including Papamo. Store the kit offline or in a password manager.

Your personal iPhone shortcut contains the key too, so keep it private and share it only with yourself.

What servers can see

The server stores, for each message, the time it arrived, a private contact ID, and whether it's starred or read. It never sees who texted you or what they said. Contact IDs are derived from the sender and your key, so they group messages by sender without revealing the sender.

Tokens

Each token can do only its job: phones can upload, send keys can queue texts, autofill tokens can read recent envelopes, and owner tokens can do everything. Give each service its own token and revoke it when you no longer need it. See Authentication.

Run psms --help to see every command. pSMS creates its credentials the first time it runs; deployments configured by environment can supply their own.

OpenPGP

Integrations can also upload an ASCII-armored OpenPGP message through the same API, with sender set to papamo:openpgp:v1 instead of papamo:encrypted:v1. The archive key can't open those: decrypt them with your PGP app after copying them from the inbox.