Text Encryptor

Type the text, choose a password, and get a string only that password can open. AES-256-GCM, done by your browser, in a format written out in full below.

The format, and how to decrypt without this site

Encrypted text is four parts joined by dots: rune1.<salt>.<iv>.<ciphertext>

  • rune1 names the method. If the method ever changes, the name changes with it.
  • salt: 16 random bytes, new for every message.
  • iv: 12 random bytes, new for every message.
  • ciphertext: the text as UTF-8, encrypted with AES-256-GCM, with the 16-byte authentication tag at the end.
  • The key is PBKDF2-HMAC-SHA-256 of the password and the salt, 600,000 iterations, 256 bits.
  • Salt, iv and ciphertext are written as Base64URL without padding.

This function uses only what browsers and Node.js ship with. Paste it into a browser console, or keep it in a file, and you can open a message with no help from Rune:

async function decryptRune1(message, password) {
  const [version, salt, iv, data] = message.replace(/\s+/g, '').split('.');
  if (version !== 'rune1') throw new Error('Not a rune1 message');
  const bytes = (s) => Uint8Array.from(atob(s.replace(/-/g, '+').replace(/_/g, '/')), (c) => c.charCodeAt(0));
  const material = await crypto.subtle.importKey('raw', new TextEncoder().encode(password), 'PBKDF2', false, ['deriveKey']);
  const key = await crypto.subtle.deriveKey(
    { name: 'PBKDF2', hash: 'SHA-256', salt: bytes(salt), iterations: 600000 },
    material, { name: 'AES-GCM', length: 256 }, false, ['decrypt']);
  const plain = await crypto.subtle.decrypt({ name: 'AES-GCM', iv: bytes(iv) }, key, bytes(data));
  return new TextDecoder().decode(plain);
}

Text Encryptor turns a message into a line of characters that is useless without the password. It uses AES-256-GCM, with the key made from your password by PBKDF2-HMAC-SHA-256 at 600,000 iterations and a fresh random salt and IV for every message. The result starts with rune1 and its layout is documented on this page together with a short function that decrypts it anywhere, so you never depend on this site to read your own text. Tampering is detected: a changed message does not decrypt to something slightly wrong, it fails.

Paste the result into an email, a chat or a note; send the password by a different route.

The format is public and the decryption code is on the page: no lock-in.

  • AES-256-GCM with a PBKDF2 key
  • Nothing leaves your browser
  • Open format you can decrypt anywhere

How to encrypt and decrypt text

Encrypting and decrypting are the same three moves: the text, the password, the button.

  1. 1

    Enter the text and a password

    Type or paste the message, then choose a password. Generate makes a random 20-character one; four unrelated words also work well. The note under the field warns when a password is easy to guess.

  2. 2

    Encrypt, then copy the result

    Press Encrypt text. The result is one line starting with rune1. Copy it, or use Copy as link to get an address that opens this page with the encrypted text already filled in.

  3. 3

    Decrypt with the same password

    Whoever receives it switches to Decrypt, pastes the line, and enters the password. A wrong password or a changed message gives an error, never a half-right text.

AES-256-GCM with a slow key

The key comes from your password through 600,000 rounds of PBKDF2-HMAC-SHA-256, the count OWASP's password guidance gives for that function, so every guess costs an attacker real time.

Tampering is detected

GCM adds an authentication tag. If a single character of the encrypted text is altered, decryption fails with "Wrong password, or the text was changed" and shows nothing.

A documented format

The output is rune1.salt.iv.ciphertext in Base64URL. The page lists each part and prints a short function, using only what browsers and Node.js include, that decrypts it without Rune.

Share as a link

Copy as link puts the encrypted text after the # of this page's address. Browsers do not send that part to a server, so the link can be opened here and decrypted with the password.

Example: a door code by email

Encrypt "Side door 4471, alarm off before 9" with a password, email the rune1 line, and tell your colleague the password by phone. Anyone reading the mailbox later sees only the line.

Example: a note to your future self

Encrypt a recovery phrase hint and keep the line in your notes app. In five years, the function printed on this page will still open it in any browser console, even if this site is gone.

Nowhere. This is what happens on your device when you press the button, and what a share link does and does not contain.

What it protects, and what it does not

The encryption is sound. What usually fails is the password, the device, or the way the password is sent.

The password

The message is exactly as strong as the password: "summer2026" will be guessed whatever the cipher is.

There is no recovery. Rune never receives the password, so nobody can reset it for you.

Do not send the password in the same message, or the same app, as the encrypted text.

The device

Encryption protects the text while it travels and while it is stored, not while it is on screen.

A computer with malware or a keylogger, or someone looking over your shoulder, sees the text and the password before they are encrypted.

What stays visible

The encrypted line reveals roughly how long the text is, and that it was made with this format.

It hides the content, not the fact that you sent something.

Older text

Text encrypted here before November 2026 begins with U2FsdGVkX1 and used a weaker key method.

It still decrypts on this page. Encrypt it again afterwards to move it to the current format.

Limits

Text Encryptor takes typed or pasted text up to 1 MB per message; it encrypts text, not files.

There is no daily limit. A share link is offered only while the whole link stays under 6,000 characters.

Questions about Text Encryptor

Which encryption does it use?

AES-256 in GCM mode. The 256-bit key is derived from your password with PBKDF2-HMAC-SHA-256, 600,000 iterations and a random 16-byte salt; each message also gets a random 12-byte IV. All of it is done by the Web Crypto API built into your browser.

Can I decrypt the text without this website?

Yes. Open "The format, and how to decrypt without this site" under the tool. It shows the layout of the rune1 line and a short JavaScript function that decrypts it in any modern browser console or in Node.js.

I forgot the password. Can it be recovered?

No. The password never leaves your device and is not stored, so there is nothing to recover it from. The only way in is to try passwords you might have used.

Why does it say "Wrong password, or the text was changed"?

Those two cases cannot be told apart, by design. Check the password for a stray space or wrong capital, and check that the whole line was copied, from rune1 to the last character. Line breaks added by an email program are ignored.

Is a share link safe to send?

The link contains only the encrypted text, placed after the # sign, which browsers keep to themselves. It is as safe as sending the encrypted line itself. The password must travel separately.

Can I still open text I encrypted here earlier?

Yes. Lines beginning with U2FsdGVkX1 come from the earlier version of this tool. Paste one into Decrypt with its password and it opens; the page will suggest encrypting it again with the current method.