Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Put a solid bar over it. There, done. No takesies-backsies from that one.

Well, mostly. But say you know the name that's redacted belongs to a small group (eg: US president since 1970 to today) - you could probably rule out (and mabye rule-in, determine) the redacted name, based on font-size, kerning etc in the document.

I wonder how fare a machine learning model could go, for longer reports - say 1000 pages with ~100 pages redacted - and the style of writing could be approximately inferred from the visible content - how many sentences/paragraphs could the AI fill in with some probability?



> But say you know the name that's redacted belongs to a small group

True, but sometimes there is no way around this, because redacting part of the text visually, so that it is clear where and how much was redacted, may be a requirement.

If there is no such requirement, one can always just replace the part of text like so:

   This is the original text that I am going to redact now.

   This is [REDACTED] now.


> you could probably rule out (and mabye rule-in, determine) the redacted name, based on font-size, kerning etc in the document.

Depending on what you're redacting you can eliminate this variable.

For example when I want to redact a piece of sensitive text in a video often times I'll make the solid black bar longer than the text being hidden. This way you can't infer the length of it based on the length of the bar. Of course this only works when you can extend the bar in such a way where it won't hide non-sensitive info that's important to see. In practice it works well, for example for redacting browser history just make the bar the entire width of the browser URL bar and for API keys or secrets often times the key exists as an env variable on its own line so extending the black bar is no problem.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: