Why We Built a Zero-Email, Browser-Encrypted Letter to Future Self (and an 8-Envelope New Year Time Capsule)
I work on Notes At Midnight. This article was drafted with AI using the project’s implementation and documentation. A letter to your future self sounds like a scheduling problem. The first design decision is who should
I work on Notes At Midnight.
This article was drafted with AI using the project’s implementation and documentation.
A letter to your future self sounds like a scheduling problem. The first design decision is who should keep the letter between now and opening day. An email service can keep it and deliver it later. A browser can keep it in local storage. We wanted to give the writer something portable they could save themselves, without asking for an email address.
The New Year capsule starts from a different requirement. Eight people need to contribute from separate devices, and the host needs to open the collection at one agreed instant. That calls for shared storage and different access rules. Here’s where those two designs diverge and what each asks of the person using it.
Where does the letter live?
FutureMe handles delivery. You choose a date, enter an email address, and verify it. The job of remembering when to send the letter belongs to the service. That’s valuable if you want the letter to arrive as a surprise and expect to have access to that inbox. The letter’s arrival depends on the service and on mail reaching an address you can still use. FutureMe’s writing form
loggd.life keeps the letter in one browser. Its letter tool stores entries in localStorage without an account or automatic delivery. You return to the same browser profile to read them. Clearing site data can erase the stored copy, and opening the site on a new device won’t bring it along. loggd.life also offers export and print options, so you can keep a separate copy. loggd.life’s letter tool
We put the encrypted letter in a link. You can move the full URL to a new phone or save it in a file outside your browser profile. The service has no personal letter in a delivery queue and sends no scheduled email. If you want a reminder, save the calendar event and keep the opening link somewhere you’ll know to look. Our side-by-side comparison explains what you give up when you take custody of the letter yourself. FutureMe alternative and privacy comparison
What goes in the URL fragment?
The browser uses Web Crypto to encrypt the letter with AES-256-GCM. The resulting URL carries a versioned envelope after the #. That envelope contains a header, ciphertext, and an authentication tag. The header includes the opening timestamp, a random salt and a random 12-byte IV. AES-GCM authenticates the header as well as the ciphertext, so altering the timestamp in the envelope makes decryption fail. The timestamp itself is readable metadata. Web Crypto specification
The browser omits that fragment from its HTTP request for the page. The page’s JavaScript reads the fragment locally and uses it to open the letter. This keeps the payload out of the ordinary page request, while the page’s scripts, browser extensions and anything you paste the full URL into can still have access to it. The browser also needs a compatible reader to interpret the saved format. HTTP Semantics on fragment disclosure
Without a passphrase, the envelope contains the random secret needed to derive its key. Anyone who gets the full link has the material required to decrypt it. With a passphrase, the reader derives the key from what you enter using PBKDF2 with SHA-256 and a per-letter salt. Use a long, unique passphrase. A person with the link can try guesses offline, and even a deliberately expensive derivation can’t make a common password hard to guess. You can try both modes using a disposable letter. Write a letter to your future self
The date is a countdown you can bypass
The reader compares the opening timestamp with the device clock. Move that clock forward and the reader can offer to open the letter early. Authenticating the timestamp protects it from being edited without detection. The browser’s sense of the current time is a separate input. A passphrase keeps the content private from someone who has the link alone, but anyone who already has both can also open it early.
Save the full link, download the TXT backup, and keep the passphrase separately. The TXT file contains the opening date and the full URL with its encrypted payload. It’s a second copy of the link in a form you can move, which matters if a messaging app truncates a long URL or you lose your original bookmark. It still needs a compatible reader and, when enabled, the same passphrase. We can’t recover either a lost passphrase or a letter whose link and backup are both gone. For a quick check, make a disposable letter, open its backup on a second device, and check that the reader recognizes it. A short opening window on a test letter also lets you verify the whole process before relying on it for a date months away.
Eight envelopes need a host and a shared clock
The group capsule gives friends eight slots for short notes, such as one January plan per person. Friends can contribute with an invitation link or code, without an account or email address. The host keeps a separate private recovery link and opens eligible notes after the scheduled time. On the call, the host can read aloud the notes their writers are comfortable sharing.
Group submissions are stored in plaintext on the server and may be processed for moderation. Scheduled access controls govern when the host can read the envelopes through the app. Group capsules expire 30 days after the scheduled opening, so save any notes you have permission to keep before then. The opened example shows what friends might write and how the reveal works, using eight fictional notes. See the sample New Year time capsule
If the host picks midnight at the start of January 1, 2027 in New York, that’s 05:00 UTC. London friends see 05:00 on January 1, and Tokyo friends see 14:00 on January 1. A friend in Los Angeles sees 21:00 on December 31. Including the date beside each time matters as much as getting the offset right.
For a builder, the practical sequence is to resolve the host’s calendar date and midnight in an IANA time zone such as America/New_York, then use that one instant for the countdown, the calendar event, and every guest’s local display. Intl.DateTimeFormat can display that instant in each city’s time zone. Putting the dated local times in the invite also lets friends see, before they commit, that joining at New York midnight means an early start in London.
For a personal letter, the thing to save is the complete link and, if you set one, the separate passphrase. For a group capsule, the host needs the recovery link and everyone needs the same opening instant written in their own local time. Make those handoffs clear at creation, while there’s still time to check them.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.