←back to thread

382 points DamonHD | 1 comments | | HN request time: 0s | source
Show context
AdmiralAsshat ◴[] No.43697419[source]
My Windows-98 approved method for redacting a screenshot:

1) Open screenshot in MS-Paint (can you even install MS-Paint anymore? Or is it Paint3D now?)

2) Select Color 1: Black

3) Select Color 2: Black

4) Use rectangular selection tool to select piece of text I want to censor.

5) Click the DEL key. The rectangle should now be solid black.

6) Save the screenshot.

As far as I know, AI hasn't figured out a way to de-censor solid black yet.

replies(18): >>43697459 #>>43697468 #>>43697505 #>>43697519 #>>43697570 #>>43697579 #>>43697609 #>>43697637 #>>43697671 #>>43697672 #>>43697686 #>>43697695 #>>43697917 #>>43697983 #>>43698183 #>>43698548 #>>43699015 #>>43702531 #
its-summertime ◴[] No.43697519[source]
There was a programming competition, can't remember which, similar to IOCCC but more about problematic software? where the redaction was reversible despite being pure black, due to the format chosen allowing for left over information in the image (vastly reduced quality but it was enough to allow text to be recovered!) [edit: see replies!]

There was also the Android (and iOS?) truncation issue where parts of the original image were preserved if the edited image took up less space. [edit: also see replies!]

Knowing some formats have such flaws (and I'm too lazy to learn which), I think the best option I think is to replace step 6 with "screenshot the redacted image", so in effect its a completely new image based on what the redacted image looks like, not on any potential intricacies of the format et al.

replies(9): >>43697673 #>>43697743 #>>43697816 #>>43697821 #>>43697825 #>>43698509 #>>43698669 #>>43698736 #>>43699375 #
fanf2 ◴[] No.43697816[source]
You are thinking of John Meacham’s winning entry in the 2008 underhanded C contest https://www.underhanded-c.org/_page_id_17.html
replies(1): >>43698598 #
1. turnsout ◴[] No.43698598[source]
Wow, it took me a minute to figure out how his entry works. You really could read that code and assume it was correct. The resulting image is perfectly redacted visually, and the missing data is not appended or hidden elsewhere in the file. You would only discover it by inspecting the PPM image in a text editor. Very sneaky!