Password-Protect Text
Lock a message with a password and get locked text or a share link. Only someone with the same password can read it.
If you forget the password, the text can't be recovered, not even by us. This site never stores your password or text and has no password reset, so make sure you remember it.
Locking and unlocking happen in your browser. In a share link, the locked text sits after the # in the address, a part browsers never send to the server. This site stores nothing you type, and closing the page clears it.
How to Use
- Choose “Lock text” and type what only your friend should see in “Text to lock”.
- Set a password. If you forget it, the text can't be recovered, not even by us, so make sure you remember it. Pause typing for a moment and locked text starting with tl1. appears below.
- Press “Copy locked text” to paste it into a message, or “Share link”: on a phone it opens the share menu, and on a computer it copies the link.
- Tell your friend the password another way, such as in person or on a call, not in the same message as the link. That way the link alone can't be opened by anyone who sees it.
- Opening the share link goes straight to the password screen. Enter the password and press “Unlock” to read the message. If you received locked text instead, choose “Unlock text”, paste it, and enter the password.
- If the password is wrong or the locked text was changed, you'll see “Wrong password, or the text was changed.” Nothing you type is saved, and closing the page clears it.
How the Text Lock Works
A text lock has two sides, locking and unlocking. To lock, type your message, set a password, and wait a moment. Locked text starting with tl1. appears below. Copy it, or press “Share link” to send a link.
To unlock, your friend opens the link, which goes straight to the password screen, or pastes the locked text into “Unlock text”. They enter the same password and the message appears.
Behind the scenes, your browser’s Web Crypto API does the work. The password is turned into a 256-bit key with PBKDF2-SHA-256, 600,000 rounds, and the message is encrypted with AES-256-GCM. A random salt and IV are made each time and packed into the locked text, so you only have to remember the password.
Locked Text or a Share Link
Choose locked text when you want to paste the result into a chat, an email, or a note. Choose the share link when you want your friend to open one link and go straight to the password screen.
Either way, send the password by another route, such as in person or on a call. If the password travels in the same message as the link, anyone who sees the message can read it.
Nothing is uploaded or stored by this site. If you forget the password, the message can’t be recovered.
FAQ
What is a text lock, and how does it work in my browser?
A text lock turns a message into locked text that only the right password can open. Your browser stretches the password into a key with PBKDF2-SHA-256, then encrypts the text with AES-256-GCM using its built-in Web Crypto API. All of that happens on your own device, so there is nothing to install and no account to make.
Is the text lock free, and do I need to sign up?
It's free, and there is no account or app. Open the page, type your message, set a password, and copy the locked text or the share link. Your friend needs only the link and the password.
How is this different from Base64 or the AES encryption tool?
Base64 is an encoding with no password, so anyone can decode it and it keeps nothing secret. This tool encrypts: your password is turned into a key and the text is encrypted with AES-256-GCM, so without the password it can't be read. Unlike the AES encryption tool, you don't need to supply a key or IV or pick a mode. A random salt and IV are generated each time and packed into the locked text, so all you need to remember is the password. Use the AES tool when you're checking a program's output.
Can I unlock it if I forget the password?
No. The password exists only in your head and your friend's. This site doesn't store the password, the locked text, or the original, and there's no password reset or recovery. The password can't be worked out from the locked text either. Remember the password before you lock anything, and keep your own copy of anything important.
Is my text or password uploaded? Is the share link safe?
Nothing is uploaded. Locking and unlocking happen in your browser, and the locked text sits after the # in the share link. Browsers never send the part after # to the server, so this site never receives your message. Anyone who has both the link and the password can open it, though, so send the password another way, not in the same message as the link.
How do I choose a safe password?
Longer is better. The tool deliberately takes a moment to turn the password into a key, which makes mass guessing slow, but a short or common password can still be guessed. Try four or more unrelated words, like “purple tractor cloud Tuesday”: easy to remember and hard to guess. Avoid birthdays, phone numbers, and things like 123456. You can also use the site's password generator.
Why is the locked text different every time, even with the same message and password?
A new random salt and IV are generated for every encryption, so the locked text never repeats and nobody can tell from two locked texts whether the messages match. Every version opens with the original password, so it doesn't matter which one you send.
Will old locked text still open after the tool is updated?
Yes. The tl1. at the start of the locked text is a version tag, and the tool picks the matching way to decrypt it. Even if a newer method is added later, the ability to decrypt older versions is always kept, so anything you've sent can still be opened with its original password.
Why do a wrong password and altered text show the same error?
AES-GCM checks an authentication tag when decrypting. A wrong password or a change to even one character of the locked text makes that check fail, and the two cases can't be told apart mathematically. When you see this error, check the password's capitals and spaces first, then ask for the complete locked text or link again.
Related Tools
AES Encryption and Decryption
Encrypt or decrypt text with AES-128, 192, or 256 in CBC, GCM, CTR, or ECB mode. Enter the key and IV as text, hex, or Base64.
Caesar Cipher & ROT13
Type in either box to encrypt or decrypt English letters with a shift, switch to ROT13 in one tap, and see the results for all 25 shifts at once.
Password Generator
Generate strong random passwords in one click. Choose the length and character types, up to 10 at a time.
Hash Generator
Enter text or choose a file to get MD5, SHA-1, SHA-256, SHA-384, and SHA-512 at once. Paste an expected value to see which algorithm matches.
HMAC Generator
Enter a message and a key to get an HMAC with SHA-256, SHA-384, SHA-512, SHA-1, or MD5. The key can be text, hex, or Base64.
Base64 Encoder & Decoder
Type in either box to encode text as Base64 or decode Base64 back into text. UTF-8 safe, with a URL-safe alphabet option.