TMailr

← All writing

Privacy

One-time codes are not secret in transit

22 July 2026 · 4 min read

Email is store and forward. Your code sits, in the clear, on every machine that handles it, for as long as each keeps logs. TLS between hops helps only when every hop uses it, and it is opportunistic by default.

What follows from that

If you are building the sending side: expire in minutes, invalidate on use, never include the code in the subject, and do not log the message body. If you are receiving one on a shared or temporary address, use it and move on.

More on privacy