What happens to a 5 MB photo when you encrypt it here
Take a photo of exactly 5,000,000 bytes, named passport.jpg, and the password correct horse battery staple. Pick the file, type the password twice and press Encrypt. The first thing the page does is not encryption at all. It makes 16 random bytes, the salt, and runs the password and salt through PBKDF2 600,000 times. On a recent laptop that takes about half a second, and that delay is the point: anyone guessing passwords pays the same half second for every guess.
Next the photo is cut into 1 MiB pieces of 1,048,576 bytes. Five million bytes makes four full pieces and a fifth of 805,696 bytes. Each piece is encrypted with AES-256-GCM, which adds a 16-byte tag that later proves the piece was not changed. Each piece also gets a different number in its nonce, and the last piece is marked as the last. So nobody can swap two pieces, and nobody can cut the file short and pass it off as complete.
The download is passport.jpg.enc. Its size is easy to work out: a 40-byte header, the 5,000,000 bytes of the photo, and 16 bytes for each of the five pieces. That is 5,000,120 bytes. The header holds the letters ykencf, the version, the round count, the piece size, the salt and the nonce. None of these are secret. They are what any copy of this page needs, along with your password, to rebuild the key and check the pieces.
Now suppose a friend receives passport.jpg.enc and picks it here. The page reads the first six bytes, sees ykencf, and switches to Decrypt by itself. If the friend types the wrong password, the first piece fails its check and the page says Wrong password, and saves nothing. With the right password every piece passes and the download is passport.jpg again, byte for byte the original. If the email had damaged the file in the middle, the first piece would open and the third would fail. The page would then say the password is right but the file is damaged, which tells your friend to ask for a fresh copy rather than try other passwords.
Some limits are worth knowing. The password is the whole of the security, so a short or common one can be guessed on a fast computer no matter how good the cipher is. A lost password cannot be recovered by anyone. The file name and the rough size stay visible: an observer can tell this is a file of about 5 MB called passport.jpg.enc. Files over 2 GB are refused, because the finished copy is held in memory before you save it. And a .enc file only opens here, or with a script written from the format description in the site’s public source code.