https://github.com/BishopFox/unredacter Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code + Explore + All features + Documentation + GitHub Skills + Blog * Solutions + For + Enterprise + Teams + Startups + Education + By Solution + CI/CD & Automation + DevOps + DevSecOps + Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles + Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this organization All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} BishopFox / unredacter Public * Notifications * Fork 572 * Star 6.1k Never ever ever use pixelation as a redaction technique License GPL-3.0 license 6.1k stars 572 forks Star Notifications * Code * Issues 15 * Pull requests 3 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights BishopFox/unredacter This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 2 branches 0 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/B] Use Git or checkout with SVN using the web URL. [gh repo clone Bishop] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @dan-bishopfox dan-bishopfox Merge pull request #13 from novedevo/patch-1 ... fc383c7 Feb 23, 2022 Merge pull request #13 from novedevo/patch-1 Fix minor typo/grammar fc383c7 Git stats * 10 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time img Public release Feb 15, 2022 src Merge pull request #2 from n3rada/patch-1 Feb 18, 2022 .eslintrc Public release Feb 15, 2022 .gitignore Public release Feb 15, 2022 LICENSE Initial commit Oct 18, 2021 README.md Fix minor typos/grammar Feb 23, 2022 index.css Add background color Feb 21, 2022 index.html Public release Feb 15, 2022 package-lock.json Public release Feb 15, 2022 package.json Public release Feb 15, 2022 secret.png Changed default font to Arial Feb 17, 2022 test.html Changed default font to Arial Feb 17, 2022 tsconfig.json Public release Feb 15, 2022 View code Unredacter How to Try it Out How to Crack Your Own Pixelated Image README.md 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. wow such secrets 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! About Never ever ever use pixelation as a redaction technique Resources Readme License GPL-3.0 license Stars 6.1k stars Watchers 59 watching Forks 572 forks Releases No releases published Packages 0 No packages published Contributors 3 * @dan-bishopfox dan-bishopfox Dan Petro * @novedevo novedevo Devon Sawatsky * @n3rada n3rada Languages * TypeScript 90.4% * HTML 9.3% * CSS 0.3% Footer (c) 2022 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.