Hacker News new | ask | show | jobs
by J253 1582 days ago
To prevent some of the issues with blurring or compression leaking sensitive info, one simple workaround I’ve used is to just put black boxes over the text as usual in any program and then take a screenshot and save it out from there. No accidental history or compression leaking.
2 comments

One thing that still leaks is the exact spacing between words adjacent to the black boxes. This is a particular concern one only one or two words are blacked out -- for example a name. With a known font (with known character widths and kerning tables) and a known text engine applying those kerning rules, there's often very few combinations of letters that give the exact pixel (or subpixel) width blank space.
Clever. Monospaced fonts improve things, with the tradeoff of making it trivial to know the number of characters redacted.
For a first name + last name combination, you still have a lot of potential combinations based on the total length
Yes, but being able to rule out "Firstname Lastname" can itself be interesting. Depending on context, the space of names is not all people, but can be very restricted.
Has someone made a demo of that?
Thanks.
So blurring can be reversed and black bars can be cracked, is there any way to securely redact a document?
Convert to ASCII, normalise whitespace, normalise spelling, normalise word choice hope, there are no word or paragraph based watermarks present.

Or just summarise the content yourself and hope there are no event/story/narrative based watermarks present.

I wonder if there are redaction tools that randomly stretch or warp the blacked out areas so as to make character guessing impossible.
Tbh I think there needs to be some dedicated tool for censoring images. Even with this method there is a small chance that it isn’t 100% opaque. I have seen several images where you can pull them in to gimp and adjust the color levels until even the slightest color difference becomes blown out and you can read the censored text.

It’s just too easy to mess this stuff up.

Windows paint does pretty well, though it's still error prone
That would be a cool idea for a really simple and easily auditable FOSS image tool.