Real encryption, in your browser
The tool uses AES with a 256-bit key in GCM mode, provided by the cryptography built into your browser. Your password is turned into a key by PBKDF2 with SHA-256 and 600,000 iterations, which slows down an attacker's guesses. A new random salt and initialisation vector are drawn for every encryption: the same message never gives the same result twice.
Encrypting and decrypting
For text, the result is in Base64, ready to paste into an email or a note. For a file, you download a file ending in .nga. To get the original back, choose “Decrypt” and enter the same password. GCM checks integrity: content altered by even a single bit is rejected.
Choosing and sharing the password
- Strength depends first on the password: use a long, unique one, or let the tool create it.
- Send it through a different channel from the message: by phone if the message goes by email.
- Keep it in a password manager. There is no recovery procedure.
The format, so that you do not depend on this page
In order: the letters NGA1 (4 bytes), the iteration count (4 bytes, big-endian, from 1 to 5,000,000), the salt (16 bytes), the vector (12 bytes), then the encrypted message followed by its 16-byte tag. The key is 32 bytes long, derived from the password in UTF-8, NFC form. The first 36 bytes are the authenticated data.
Limits
The size of the result reveals the size of the original, and the file name is not hidden. In Text mode line endings are made uniform: to keep content byte for byte, encrypt a file. An infected device or a nosy browser extension can see what you type, and your trust rests on the code this site serves you at each visit. The tool comes with no warranty.
Frequently asked questions
Are my password or files sent anywhere?
No. Everything is computed on your device. No message, file or password is uploaded or saved.
I forgot the password. What can I do?
Nothing can recover it: without it, the data stays unreadable. That is the point of encryption.
How large can a file be?
Up to 500 MB, because the file is processed in one go. On a phone the practical limit is much lower: the tab may stop for lack of memory.