Skip to content

AES-256-GCM with a PBKDF2 passphrase

Encrypt text with a passphrase

This page locks a message you can read again only with the same passphrase. The package is specific to Glazlo. OpenSSL and a password manager will not know the byte layout.

The passphrase is stretched with PBKDF2-HMAC-SHA-256 for 100,000 iterations and a random 16-byte salt, into a 256-bit AES-GCM key. A random 12-byte IV is used once. The downloadable string is standard Base64 of salt, then IV, then ciphertext (which includes the GCM tag). Decrypting splits those fields back apart. A wrong passphrase, or a single changed character in the package, fails closed. Nothing partial is shown.

The passphrase and the message stay in this tab. Glazlo never sees the package unless you copy it somewhere yourself.

This tool runs in your browser. Turn on JavaScript to use it.

How one package is laid out

Each encryption draws a new salt and IV, so the Base64 changes even when the words do not. The lengths below do not change.

KDF
PBKDF2-HMAC-SHA-256, 100,000 iterations
Salt and IV
16 bytes, then 12 bytes
Cipher
AES-256-GCM, tag stored with the ciphertext

How to use it

  1. 1Choose a passphrase you can type again. The page cannot remind you.
  2. 2Encrypt the note and copy the Base64 package.
  3. 3To open it, paste the package and the same passphrase. A mismatch produces an error, not a guess.

Good to know

  • This is not a file vault and not a replacement for age or a password manager's attachment.
  • The salt is in the package, so you do not store it separately. You do store the passphrase.
  • 100,000 iterations slow a guess. They do not make a short passphrase strong.

Questions

Can I decrypt a message from another site?

Only if that site used this exact layout. A random Base64 string from somewhere else will fail.

What if I forget the passphrase?

The message stays unreadable. There is no recovery question and no copy on a server.

Does the same text encrypt to the same string?

No. The salt and IV are random each time. Decrypt still returns the same text.

Related tools

  • Generate a random password

    A password from a coin-flip source is stronger than a word you adapted. This page draws each character from the sets you leave on, and then forgets it when you leave.

  • HMAC a message

    HMAC mixes a secret key into the hash so someone who can see the message still cannot forge the tag. Hashing the key and the message yourself, one after the other, is not HMAC.

  • Hash text or a file

    A hash is a fixed-length fingerprint. The same bytes always produce the same digest, and the digest is not a way back to the file. Use it to compare a download or to spot a changed string.