How to Scramble a Photo with a Password and Share It Safely
Lock a picture behind a password while keeping it a normal image file: block and pixel scrambling explained, choosing passwords and sharing safely.

Sometimes a picture needs to pass through a place where you do not control who looks: a shared drive, a family group, a forum or a public album. Sending an encrypted archive works, but many apps refuse to preview or send unknown files, and recipients get confused. Scrambling offers a middle way: the picture stays an ordinary image file that opens anywhere, it simply looks like colourful noise until someone restores it with the password.
How password scrambling works
The Image Scrambler and Password Lock first turns your password into a 256-bit key with PBKDF2, a standard method that repeats a hash function 200,000 times. This makes guessing passwords slow for an attacker while taking only a moment for you.
The key then drives one of two methods.
Block mode cuts the picture into squares of 8, 16 or 32 pixels, aligned to the grid that JPEG compression uses. It shuffles their positions, rotates and mirrors each square, and swaps and inverts its colour channels, all in an order that only the key can reproduce. Because the squares line up with the JPEG grid, a scrambled picture that gets saved as a JPEG still restores to a recognisable photo, with faint lines along some edges.
Pixel mode encrypts every colour value with AES in counter mode, a widely used encryption standard, and then moves every single pixel to a new place. Nothing of the original picture remains visible, but every pixel must survive unchanged, so the file must stay a lossless PNG.
Which mode to choose
Use pixel mode for anything private: documents, ID photos, medical pictures or personal photos. Share the PNG as a file, not as a compressed chat image.
Use block mode when the picture may be recompressed along the way and when the goal is to hide the content from casual viewers, such as a spoiler, a surprise or a picture you only want certain group members to see. Smaller blocks hide more detail; larger blocks survive compression better.
Choosing and sharing the password
The scramble is only as strong as the password. Use a passphrase of four or more random words, such as a short string of unrelated words with a number. The strength hint estimates its entropy in bits; aim for "good" or "strong".
Send the password through a different channel from the picture. If the picture goes through a group chat, give the password in person or by phone. Never put the password in the file name or the message that carries the picture.
Sharing without breaking the picture
Many messaging apps and social networks shrink and recompress pictures to save data. That destroys pixel-mode pictures and can blur block-mode ones beyond repair. To keep the exact file:
- send it as a document or file attachment rather than as a photo,
- share a cloud link that serves the original file,
- or zip it before sending.
Restoring
The scrambler writes the method and block size into the file name, for example holiday-scrambled-b16.png. When the recipient opens that file on the Restore tab, these settings are filled in automatically, and they only need the password. If the result still looks like noise, the tool warns that the password or settings are wrong, or that the file was resized or cropped on the way.
A worked example
A 3,000 by 2,000 photo scrambled in block mode with 16-pixel blocks becomes 187 by 125 full blocks, 23,375 in total, plus a narrow strip at the right edge that is shuffled pixel by pixel. Saved as PNG and sent as a file, it restores exactly with the passphrase. Saved as JPEG at quality 95 instead, it still restores, with faint seams that are barely visible at normal viewing size.
What scrambling does not do
There is no recovery: if the password is lost, nobody can restore the picture, because nothing about the password is stored anywhere. Scrambling does not hide that a picture was shared, who sent it, or its size. It is not a substitute for end-to-end encrypted messaging for highly sensitive material, and block mode can leak the rough layout of large plain areas. For truly confidential files, use pixel mode, a strong passphrase and a trusted channel.



