Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
U

unredacter

> 编程语言
Open source

Never ever ever use pixelation as a redaction technique

8.4K stars0 likes0 views
WebsiteGitHub

About

Never ever ever use pixelation as a redaction technique

Unredacter

Shows you why you should never ever ever use pixelation as a redaction technique. For a more complete writeup of how this works, check out my blog post here.

How to Try it Out

Install the dependencies:

npm install

Then start with

npm start

That's it.

How to Crack Your Own Pixelated Image

This is a bit manual and not at all streamlined. I think you'll see why. If someone feels like taking a shot at making this process more in-app, I'm all ears. What do I look like, an Electron developer? But yea here it is:

  1. Crop your image down to just the pixelated area. No borders, no other text. Replace secret.png with that. I recommend doing it in GiMP.

  2. Make note of the block size (it's just the size of each pixelated block). Replace blockSize in the code with that.

  3. Get the CSS just right. This is the hardest and most time-consuming part. Try entering it into test.html and view it in Chrome. Tweak it until you can replicate some sample text as exactly as possible. Pay particular attention to the word and letter spacing. If it skews, then it'll all mess up. Also the font-weight, or else things will end up too light or dark. I can't emphasize enough how critical this step is, as the whole thing really depends on being able to correctly replicate the redacted characters.

  4. Determine what character set you want to try. It's at the top of preload.ts.

  5. Press the go button and see if it works!

Issues· 36 open

View all issuesOpen on GitHub
  • #55

    Ggggfgh

    Updated Jul 22, 2026
  • #42

    привет

    Updated Jun 21, 2025
  • #35

    NPM Start Failure

    Updated Nov 27, 2024
  • #32

    Can't start npm

    Updated Jul 31, 2024
  • #41

    Can This Program Run On Ubuntu Server CLI Without Graphical Interface?

    Updated Apr 29, 2024
  • #20

    GPU process isn't usable

    Updated Jan 14, 2024
  • #37

    It just won't work - first, "Arial font" error, then "GPU process" error.

    Updated Jan 14, 2024
  • #4

    Does Not Work on Apple Silicon Macs

    Updated Dec 11, 2023
  • #40

    What should I modify to change the font and background color?

    Updated Nov 26, 2023
  • #38

    Always looking for the first letter, no further search

    Updated Oct 30, 2023

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言