Offline text encryption

Encrypt text with a password

Lock any text into a block only the password can open. It all happens on this page, so nothing you type is sent anywhere.

Text to encrypt

Encrypted block

What’s inside a block

Every block carries what it needs to be decrypted, except the password.

BEGIN lineMarks where the block starts
Version1 byte
Salt16 random bytes
Nonce12 random bytes
CiphertextSame length as your text
Tag16 bytes

The salt makes your password produce a different key each time, so two blocks with the same password share nothing. The nonce does the same for the encryption itself.

The tag is a tamper check. Change one character of a block and decryption fails, instead of showing altered text.

Try it: paste this block into Decrypt mode with the password pigeon.

-----BEGIN 1TIMESEC ENCRYPTED TEXT-----
AQxFeZFX6xmfSV9OnfOe9xXEE4PIKksPUmOD6AkZtjKT+TgPzTw9rC5j7ZMhJ4Xg
WCaB6oN/q4Lty/32mtfv6IRgGUmHQ74fg+wNG3esbfk=
-----END 1TIMESEC ENCRYPTED TEXT-----

Want it gone after one read?

An encrypted block can be opened again and again, by anyone with the password, wherever it was pasted. If the text should disappear after the recipient reads it, send a one-time link instead.

Send a one-time secret

Questions

Is my text sent anywhere?

No. Encryption and decryption run in your browser with the Web Crypto API. This page makes no network request with your text or password, and it keeps working offline once loaded.

What algorithm does it use?

AES-256-GCM. The key comes from your password through PBKDF2-SHA256 with 600,000 rounds and a random 16-byte salt, so the same text and password give a different block every time.

What if I forget the password?

Then the text can’t be recovered. Nobody holds a copy of the key.

How is this different from a one-time link?

An encrypted block can be decrypted any number of times by anyone with the password, and it lives wherever you paste it. A one-time link is deleted after one open.

More envelopes