How Sigil works
Create an account
Pick a username and password. The password proves who you are to the server. It does not unlock your keys.
Set up your keys on your phone
Create a new GPG key or import one. Your private key stays on your device and is never uploaded.
Your public key is shared
Only your public key goes to the server. Anyone who searches your username gets that public key.
Encrypt before sending
Your phone encrypts each message with the recipient's public key. The server only receives ciphertext.
Decrypt on arrival
The recipient's phone decrypts the message with its private key. Nothing is readable in transit or on the server.
Message path
Timers and editing
A chat timer applies only to messages sent after it was set. A per-message timer overrides the chat timer for that one message. Expired messages are removed from the database automatically. Senders can edit or unsend their own messages.
API
| Method | Endpoint | Purpose |
|---|---|---|
| POST | /api/auth/register | Create an account |
| POST | /api/auth/login | Log in, returns a token |
| GET | /api/users/search?q= | Find users by username prefix |
| GET | /api/users/:username/public-key | Fetch a public key only |
| PUT | /api/users/me/public-key | Upload your public key |
| GET | /api/messages/inbox | List your conversations |
| GET | /api/messages/with/:username | Get ciphertext for a chat |
| POST | /api/messages | Send ciphertext |
| PUT | /api/messages/:id | Edit a message you sent |
| DEL | /api/messages/:id | Unsend a message you sent |
| PUT | /api/messages/conversation/:username/timer | Set the chat timer |
What the server can and cannot see
| Can see | Usernames, password hashes, public keys, ciphertext, timestamps, timer settings |
| Cannot see | Message contents, private keys, your key passphrase |
| Never stored | Profile pictures, avatars, device identifiers |