Encrypt and decrypt text with a password

Lock a message with a password using AES-256-GCM in your browser, as a block of text you can send anywhere, and open it again on the same page.

How to encrypt text with a password

  1. 1

    Type the message or paste an encrypted block

  2. 2

    Type the password

  3. 3

    Copy the block or read the message

A locked message you can paste anywhere

Some things should not sit in an email or a chat history as plain text: a door code, a recovery phrase, a note to yourself. Type the message and a password, and the page turns it into a block of letters and figures that means nothing without the password. Paste the block back with the same password to read it.

How it is locked

The password is stretched into a 256-bit key with PBKDF2-HMAC-SHA256 over 600,000 rounds and a random 16-byte salt, which makes each guess at the password slow. The message, as UTF-8, is then encrypted with AES-256 in GCM mode under a random 12-byte nonce. GCM also writes a 16-byte tag, so any change to the block, or the wrong password, is detected and nothing is returned. Because the salt and nonce are new each time, the same message and password give a different block on every run.

The block is the same container the Encrypt file tool writes, a small header followed by the ciphertext, written as base64 so it can travel as text. It always starts with the characters RkdMT0NLMD. The header, iteration count included, is covered by the tag.

Opening a block

Paste the block. The page recognises it by its first characters and decrypts it, so there is no mode to switch; choose Encrypt in the Do box if you want to lock text that happens to look like a block. Spaces and line breaks added by an email program are ignored.

The password is the lock

AES-256 is not broken by trying keys. A locked message is attacked by guessing the password, and the stretching only slows that down. A password of four or five unrelated words, or one from the password generator, is far stronger than a short one with symbols. Share it by a different route from the block, by phone rather than in the same email.

Nothing is uploaded. The text is locked and opened in this tab.

Everything you need

AES-256-GCM

A key stretched from your password by 600,000 rounds of PBKDF2, with a fresh salt and nonce every time.

Text in, text out

The block is base64, so it goes in an email, a chat or a note and is opened on this page with the password.

Private by design

The message and the password never leave your browser.

Nothing uploaded: open the Network panel while it runs and check.

No daily limits or watermarks: free batches take up to 20 images.

Works offline: once the page has loaded, on any current browser.

Frequently asked questions

Is my message or password sent anywhere?

No. The browser's own encryption runs on your device, and neither the message nor the password leaves it. The encrypted block is only text, so you choose where it goes.

What if I forget the password?

The message cannot be read. Nothing here keeps a copy of the password or a way around it, which is what makes the lock worth having. Send the password another way than the block, and keep it somewhere safe.

How strong is it?

AES-256-GCM under a key made from your password by 600,000 rounds of PBKDF2-SHA256, the figure OWASP gives. The cipher is not the weak point; a short or common password is, so use a long one of several ordinary words.

What happens if the block is changed?

It will not open. GCM checks every byte, so a block with a character changed, cut short or opened with the wrong password gives an error and no text, never a garbled message.

Sources

Related guides

Work with files privately and confidentlyPractical, sourced explanations for safer file conversion, sharing, and cleanup.