← GLEES YING

DialCrypt

Encrypted messaging through the audio of a phone call.

I designed and built DialCrypt to carry encrypted text through an ordinary cellular voice call. Two rooted Google Pixel phones exchange modem tones, establish session keys and send messages over the same audio path normally used for speech.

The system combines a custom Rust modem, hybrid post-quantum key exchange and hardware-backed identity keys. There is no messaging server or account system, and the Android app does not request the INTERNET permission.

My implementation covers the modem, session protocol, encrypted vault, Android client, root daemon and in-app keyboard. Rust handles the signal processing and cryptographic state; Kotlin connects that core to Android’s telephony audio paths, StrongBox and the interface.

Rust · Kotlin · Digital signal processing · Post-quantum cryptography · Android internals

Explore the source

Proven on a live commercial VoLTE call.

Running over a real cellular call

On 24 November 2026, a Pixel 7 called a Pixel 7a over a commercial VoLTE network. Using a previously verified contact, the phones opened an encrypted chat about 20 seconds after answering. A fresh post-quantum exchange completed in the background about a minute later.

A quick reply travelled in each direction, and ending the session hung up both phones.

That single call exercised the modem, session protocol and message delivery together on a live carrier network.

Field-test notes

Getting data through a speech codec

The carrier processes every packet as sound.

Speech codecs are designed to preserve speech while discarding information they consider unnecessary. A modem has to recover its data after that processing, while also dealing with uneven frequency response, missing audio, buffer discontinuities and two phones whose audio clocks do not quite agree.

DialCrypt’s modem operates at 16 kHz in 20 ms audio frames. Its tone modes encode data with constant-weight codebooks: the default wideband mode selects two tones from seven in each subband.

The receiver has several jobs beyond detecting those tones. A 400 ms rising-and-falling chirp establishes timing and estimates frequency offset. A rate-1/2, K=7 convolutional code, soft-decision Viterbi decoder and 384-bit interleaver help recover damaged frames. Receiver compensation adjusts for the channel’s frequency response, while a clock tracker corrects the frame step as the phones drift apart.

The modem includes four operating modes:

Mode Modem frame capacity Design focus
Wideband2400 Approximately 1,150 bps Higher throughput over a wideband voice path
Narrowband1200 Approximately 575 bps A narrower frequency range
Robust300 Approximately 144 bps An experimental mode for more difficult codec paths
Speech300 Approximately 144 bps Experimental modulation using a synthesized voice-like waveform

These figures describe the capacity of the 23-byte modem frames after error correction. Encryption, protocol headers, synchronization and retransmissions reduce the rate available to actual text.

Speech300 explores a different signal shape, using changing pitch and formants to carry data through speech processing.

The frame budget shapes the entire system: short messages, compact control traffic, selective retransmission and careful handling of connection setup.

Read the modem design

A hybrid handshake on a narrow channel

The full handshake combines X25519 and ML-KEM-1024 through an HKDF-SHA-384 key schedule. A running SHA-384 transcript binds the exchanged messages and negotiated parameters into the session. P-256 identity keys held in StrongBox sign the identity exchange, and the implementation checks Android Key Attestation chains.

The size of that exchange matters here. One handshake message alone carries 1,600 bytes. On a normal data connection, that is a small packet budget. Through call audio, it becomes a substantial part of the time spent connecting.

I built a separate reconnect path for verified contacts. It combines a rolling shared secret with fresh X25519 keys, allowing the encrypted session to open before a new ML-KEM exchange finishes. The fresh post-quantum secret is then mixed into a later ratchet step, and the interface distinguishes that completed refresh from the initial connection.

The rolling secret uses two slots. A phone keeps the previous secret until its peer confirms that the replacement has been saved. This handles a practical problem: a dropped call during an update should not leave two contacts holding incompatible secrets.

Caller ID does not authenticate the peer. Contact recognition uses blinded tags derived from stored secrets, and the result becomes part of the handshake transcript. For a new contact, the users compare five words in a timed voice window. Those words represent a 40-bit, commitment-bound comparison value; the contact remains unverified until the comparison is completed.

Encryption within a 23-byte frame

A protected modem frame contains a three-byte counter, 14 bytes of encrypted payload and a six-byte Poly1305 authentication tag.

That small outer tag is an explicit bandwidth tradeoff. Complete messages also receive their own layer of XChaCha20-Poly1305 encryption with a full 128-bit authentication tag.

Separate key chains advance for frames and messages, and the implementation retires used keys from those chains. The receiver rejects duplicates, accepts limited reordering within a 64-frame window and keeps a bounded set of skipped keys.

The code also counts failed frame authentication checks. At 64 failures it requests an early key ratchet; at 4,096 it stops accepting the epoch. Periodic X25519 exchanges renew the epoch keys during the call.

Damaged frames can be discarded and retransmitted. Fatal protocol failures terminate the session, and the messaging protocol has no unencrypted fallback.

Session design · Frame encryption · Message encryption

Hardware-backed identity and the PIN vault

DialCrypt generates its P-256 identity key inside Android StrongBox and uses it there to sign the handshake. It checks the key’s security level and refuses a software-backed identity key.

The vault combines Argon2id, configured with 64 MiB of memory and three passes, with five single-use HMAC tickets held in StrongBox. Each PIN attempt consumes a ticket. A successful PIN unlock rotates the vault onto fresh tickets and retires the old ones. A separate duress PIN triggers destruction of the vault and its associated keys.

Chat history is kept in memory. The native implementation uses zeroizing key types, requests page locking for sensitive buffers and disables process core dumps. A built-in keyboard keeps message input out of the system input method.

Together, these controls keep the places where sensitive data can accumulate to a minimum.

Vault implementation · StrongBox integration

Controlling the phone around the call

The Android integration reaches into privileged telephony audio routes to inject the modem signal and recover the other phone’s audio. The current implementation requires a rooted Pixel.

A separate Rust daemon, aegiscalld, implements the session lockdown. When armed, it is designed to disable Wi-Fi, ordinary mobile data, Bluetooth, NFC, UWB and USB data, restrict the phone to LTE and NR, and install firewall rules around the traffic needed for the call.

Keeping VoLTE alive requires deliberate exceptions. The firewall permits the relevant IMS signalling and a bounded set of learned media endpoints. System changes are recorded in a restore journal so they can be reversed after the session or recovered after an interruption.

Lockdown architecture

What I’m working on next

The next stage is repeatable measurement: connection success across carriers, delivered text throughput, recovery from audio disruption and the cost of the full hybrid handshake under different channel conditions.

The Android side gets the same rigor: armed lockdown, device-specific StrongBox behavior, key lifecycle review and checks that the implementation enforces every boundary the protocol describes.

The source, design documents, test code and recorded modem captures are public so every claim here can be checked against the implementation.

Under the hood

DialCrypt targets rooted Google Pixel devices with Titan M2 StrongBox, running Android 14 or later. The key agreement is hybrid post-quantum, combining X25519 with ML-KEM-1024, while identity signatures use P-256 held in StrongBox, with ML-DSA identity signatures planned.

Source code and documentation