Re:Screenshot-proof images via temporal dithering
by crazygringo on Saturday December 22, 2012 @02:01PM
(#4957185)
You can check out "font dithering" if you look at the Gotham fonts used on Obama's site.
It actually uses two fonts, each with a random half the characters, and missing the other random half. The "font-face" CSS declaration lists both of them, so when a character in one isn't present, it falls back to the other.
Everything looks perfect to the user, but it basically renders the fonts worthless for anything except web use, since system tools or Photoshop can't use character-based font fallbacks the way browsers can. Pretty clever, really.
Re:Screenshot-proof images via temporal dithering
by 6ren on Saturday December 22, 2012 @12:30AM
(#4955866)
It's amazing how well my eyes reconstruct the original image from the demo http://persistent.info/web-experiments/temporal-dithering/ I had to blink (to capture a "screenshot" in my eyes) to see that the distorted frames were really there.
Now, obviously, the way my eyes do it is temporal averaging. Thus, a camera with a sufficiently long exposure would capture it just the same. What it does prevent is screenshots, taken internally by the device - which generally don't do averaging or have a concept of "exposure". Of course, that could be implemented, but it's not standard at present.
He mentions using more than two frames - a less precise approach is to just add massive random noise over an indefinite number of frames (a noisy video of a static image), and instead of taking care that they cancel out, just rely on statistical convergence. Depending on how much noise is added, it gets more difficult to see the original.
I guess there's a risk that only a little noise is added in some frames, revealing the person. So perhaps instead of adding random noise, you use offsets of a legitimate face. This would make either single frame actively misleading, and perhaps not obviously distorted. Your eyes wouldn't be deceived (I think...), because they average the pixels, like a long exposure.
Also, one could selectively apply the technique - as google street-view blurs out people's faces, but nothing else. This might reduce the flicker.
Re:Screenshot-proof images via temporal dithering
by __david__ on Saturday December 22, 2012 @06:19AM
(#4956367)
> It's amazing how well my eyes reconstruct the original image from the demo
Hmm. It didn't work for me at all. On the latest Firefox beta it was flickering at about 10fps (ballpark guess), which was slow enough for me to see the individual images and made it look like the normal picture plus horrible static (IE, analog TV noise of old). It also took 40% of my CPU.
It looks better on chrome (and only took 10% CPU), but there's still a lot of noise there. And the flickering is unbearable.
Re:Screenshot-proof images via temporal dithering
by timothya on Saturday December 22, 2012 @12:08AM
(#4955834)
Really cool concept. While it wouldn't phase someone actively trying to retrieve the source image (i.e., I'm sure someone could write a screenshotting service for Android) that could get around this pretty readily, I'm sure that this would phase all the basic screenshotting functionality on mobile (and otherwise) currently.
I wonder if there's a way to obscure the source image even more though; while the details aren't clear the the source positive and negative frames, it's still pretty clear that it's an image of a face. Perhaps the addition of some sort of noise that could be cancelled out would work.
It would also be interesting to see this applied to video streams in addition to just static images.
EDIT: A very simple workaround that would be easy for the general public is to just take a picture of the screen with another device. Example: http://i.imgur.com/ZLdpp.jpg
Re:Screenshot-proof images via temporal dithering
by cheese1756 on Saturday December 22, 2012 @12:15AM
(#4955844)
I was about to mention rapid screenshoting as an exploit, but you took care of that. However, couldn't a rapid screenshoting application end up replacing the default screenshot function if this technique became commonplace? As the bar for using the vulnerability gets lower, the technique grows more and more useless. Maybe this can be modified to eliminate the exploit somehow (my thoughts go towards adding more randomness in some way or another)?
Re:Screenshot-proof images via temporal dithering
by timothya on Saturday December 22, 2012 @12:31AM
(#4955867)
Even if it were to become a commonplace way to time-protect images, I can't really see Apple making their screenshotting functionality actually deal with it - they'd be doing it just to circumvent this simple security system, it wouldn't have any other benefits. On Android, though (and jailbroken iOS), I can definitely see people writing mods to break this right away.
I don't think that this technique (even in a more complicated form) could ever be exploit-proof. Even with more randomness or noise, a computer can ultimately compute the same averaging that our eyes are doing, and could always get the source image back.
There's an even easier exploit too: just record the screen with another device.
Re:Screenshot-proof images via temporal dithering
by hayksaakian on Saturday December 22, 2012 @02:03AM
(#4956018)
Seriously, if your image content being stolen by screenshots is causing a problem for you, you should think about why its being screenshot in the first place and solve the problem at its root instead of playing the cat/mouse DRM game.
Re:Screenshot-proof images via temporal dithering
by mooism2 on Monday December 24, 2012 @04:45AM
(#4962385)
My first thought for why someone would want to defeat screenshotting was banks trying to make their websites more secure. I confess I can't quite see how this technique would help their use case.
Re:Screenshot-proof images via temporal dithering
by chime on Saturday December 22, 2012 @12:17AM
(#4955846)
The flickering was highly noticeable on my MacBook Air until I lowered the screen brightness. An interesting side-effect of the rapid switching is that whenever I blink, I could see the artifacts. Or when rapidly moving my head. I figure persistence of vision and peripheral vision might have something to do with it. Also smaller tile size appears to reduce flickering.
Re:Screenshot-proof images via temporal dithering
by ams6110 on Saturday December 22, 2012 @12:27AM
(#4955860)
Same effect is seen with LED brake lights or even Christmas lights... they appear to flicker if you are moving when you look at them, particulary if they are in your peripheral vision field.
I'm particulary sensitive to this; back in the days of CRT monitors I could not use any with a refresh rate of less than about 75Hz without being consciously aware of the flicker.
Re:Screenshot-proof images via temporal dithering
by brigade on Saturday December 22, 2012 @04:07AM
(#4956187)
I'll bet you see rainbow artifacts on every last one-chip DLP/LCoS and yellow flashes on plasma, too.
On topic, the second thing I noticed (after the bloody obvious flicker even with no eye movement) was a pattern marking the boundary between the two halves of the images. Then I remembered that I was running my retina display at a higher than native resolution, and scaling of course introduces artifacts at edges.
Besides, who doesn't love 10% CPU usage to display a static image?
Re:Screenshot-proof images via temporal dithering
by jrockway on Saturday December 22, 2012 @12:13AM
(#4955839)
This is an interesting idea, but since the client ultimately gets both halves one can just recombine them out-of-band. (If each half is displayed 50% of the time, it shouldn't require many screenshots to get both. And that assumes you have a 100% secure runtime / SSL chain for delivering the images to the app, which is highly unlikely.)
Re:Screenshot-proof images via temporal dithering
by weinzierl on Saturday December 22, 2012 @04:55AM
(#4956262)
In the UK this could be against Ofcom regulations. Television stations in the UK check for compliance with a special software (http://en.wikipedia.org/wiki/Harding_test).
It's not freely available, I think, so unfortunately we can't run it on Mihai Parparita's method.
Re:Screenshot-proof images via temporal dithering
by __david__ on Saturday December 22, 2012 @06:24AM
(#4956374)
The first time I heard the term "dithering" it was on my Amiga. They were referring to this kind of temporal dithering, not the kind of we all think about now. The point back then was to display more than 4096 colors on the screen at once. I believe the loaded up 2 hardware screen buffers with the 2 images and then page flipped back and forth as fast as possible.
I don't remember there being as much flicker, but since the goal was to get more subtle colors the images were probably much closer to each other than this demo.
Re:Screenshot-proof images via temporal dithering
by lttlrck on Saturday December 22, 2012 @10:03AM
(#4956698)
The Amiga used HAM (Hold And Modify) to show 4096 colors. Not dithering.
IIRC HAM was similar to delta encoding where the difference was stored pixel to pixel rather than the absolute RGB used just 5 bits.
Re:Screenshot-proof images via temporal dithering
by to3m on Saturday December 22, 2012 @02:06PM
(#4957201)
If you flick between two images at 25Hz then you'll sort-of get more colours. I think Quantum Paint on the Atari ST did this, to get more than 512 colours on screen (at the cost of the thing looking like a flickering mess), or maybe it's some other package I'm thinking of.
I didn't realise anybody ever bothered to do this on the Amiga - 4096 colours used to be enough for anybody - but of course there's no reason why you couldn't. The effect would probably only be improved with colours that are closer together.
Re:Screenshot-proof images via temporal dithering
by olefoo on Saturday December 22, 2012 @12:54AM
(#4955905)
You could also use a variant of the effect to do something similar to spot motion, so that one or a few features would appear to move in an otherwise still picture.
Re:Screenshot-proof images via temporal dithering
by kscottz on Saturday December 22, 2012 @02:53PM
(#4957310)
I went ahead and used SimpleCV/python to defeat this. Perhaps when I get more time tonight I will have it automatically capture the screen shots. Creating variations on this method could be really fun. I bet someone could bake something like this into SimpleCV.js (https://demo.simplecv.org/).
Re:Screenshot-proof images via temporal dithering
by arkem on Saturday December 22, 2012 @12:15AM
(#4955842)
An interesting technique, I think it's cool.
I doubt any technical control will solve the ephemeral picture problem because of the analog hole.
For this specific technique, if a photo of the screen doesn't defeat the dithering (in my quick tests the photos were worse than what I could see on the screen but better than either of the component frames [1]) you could reconstruct the image from a movie fairly quickly.
Re:Screenshot-proof images via temporal dithering
by baldurthoremils on Saturday December 22, 2012 @08:19AM
(#4956505)
It's really cool how you can reconstruct the original image in your browser by dragging one of the frames on top of the other. At least it works for me in Firefox on Ubuntu where the image I drag becomes see-through.
Re:Screenshot-proof images via temporal dithering
by NathanKP on Saturday December 22, 2012 @12:45AM
(#4955888)
On my iPhone the flashing alternating images were extremely visible. I'll have to try it on my computer later. One thing is for sure this won't work well on slower computers or mobile devices.
Re:Screenshot-proof images via temporal dithering
by gfody on Saturday December 22, 2012 @12:42AM
(#4955881)
For me the flicker gets better by reducing the block size and it's imperceptible at 1px - there is the occasional run of negatives or positives but that can be fixed with vsync
Re:Screenshot-proof images via temporal dithering
by Zenst on Saturday December 22, 2012 @01:42AM
(#4955996)
This is nice but does not prevent somebody using another smartphone to take a picture or video clip.
Mission Impossible had the best one and with that once you have read the message your phones battery could catch fire. Even then you could not garantee anybody else filming it.
Still nice idea and it does hinder screenshots, though they could just take a few and grab both frames to combine.
Re:Screenshot-proof images via temporal dithering
by jrabone on Saturday December 22, 2012 @05:30AM
(#4956304)
Does not work well on my phone (Galaxy S2 running CM10 nightlies) using Chrome. Animation is just not fast enough, or possibly the AMOLED screen is too quick to respond compared to an LCD. Maybe a combination of these. Anyway it's unusable (as is the HN comment text box but that's a different story)
Re:Screenshot-proof images via temporal dithering
by dendory on Saturday December 22, 2012 @07:18AM
(#4956428)
I just took 3 screenshots of the page, and by layering them together you get the exact same image as the left one. I don't really think it's a solution. As long as the eye can see it, you can't prevent recording anyways. http://imgur.com/ab1gk
Re:Screenshot-proof images via temporal dithering
by sdfjkl on Saturday December 22, 2012 @05:06PM
(#4957649)
This doesn't work at all on a Retina MBP in Safari. First image didn't animate at all, "Lenna" image flickered but at a rate that didn't make it really visible.
Re:Screenshot-proof images via temporal dithering
by madrox on Saturday December 22, 2012 @01:10AM
(#4955933)
Not trying to troll, but doesn't this all boil down to DRM? Why not simply create a DRM-enabled jpeg format that mobile devices support and be done with it?
Re:Screenshot-proof images via temporal dithering
by geofft on Saturday December 22, 2012 @11:22AM
(#4956833)
DRM is a function of the viewer, not the format, and your ability to create effective DRM on iOS is limited by the lack of a way to diable screenshots (unless it's a corporate-owned device with systemwide policies).
It is also limited to some extent by the lack of remote attestation of non-jailbroken-ness using some sort of hardware crypto module.
Re:Screenshot-proof images via temporal dithering
by duskwuff on Saturday December 22, 2012 @12:50AM
(#4955897)
Hmm - is there any way to implement a version of this effect which uses more than two images, or even one which generates a new random image for each frame?
Re:Screenshot-proof images via temporal dithering
by vinnybhaskar on Saturday December 22, 2012 @05:42AM
(#4956322)
First, I must say that this is some awesome tech. Though, I think people should not be sharing images that would require them to use a tech like this. Moreover, if this is applied to display sensitive information then the person who intends to steal it will not be dithered by something like this. They would certainly look at means to circumvent it. It's like limiting people to right click and save an image or copy some text. Those who want to do it, can always grab the source code and load images directly from their links or copy text from the source code.
Re:Screenshot-proof images via temporal dithering
by martinced on Saturday December 22, 2012 @12:02PM
(#4956916)
“It seems odd that at the beginning of the Internet everyone decided everything should stick around forever,”
No. It doesn't.
That's how it goes. The split-second something transits on the Internet there are countless copies on servers, caches, proxies, etc. In addition to that TFA mentioned the loophole that, well, once something can be seen it can be recorded using lots and lots of endless external means.
Oh, and that "everything sticks around forever" is not just for stuff on the Internet: it's much worse than that.
It's that "anything that is on any device connected to the Internet" can potentially stick around forever.
Ask Scarlett Johannson how it worked for her private pic in her smartphone...
People saying that "our pics are never saved anywhere" are using deception to lure clueless people in.
Re:Screenshot-proof images via temporal dithering
by delinka on Saturday December 22, 2012 @01:36PM
(#4957127)
"...decided..."
No, we just took our experience from the real world and applied it to this new-fangled communications thingy. Physical things can "stick around forever" if cared for properly. There's no law that says I have to destroy my things after some period of time.
Now that we have digital copies of things, those copies are made of intangible ephemeral bits that are copied repeatedly to get them from one place to another. I think the author's statement that you quote overlooks that digital things are analogies of physical things- physical things that we've expected to last for as long as we like.
Re:Screenshot-proof images via temporal dithering
by mihaip on Saturday December 22, 2012 @06:39PM
(#4957874)
I tried this with a canvas (putImageData with alternatively the positive and negative frame) and it wasn't any faster on desktop Chrome (and slower on iOS devices).
Re:Screenshot-proof images via temporal dithering
by mihaip on Sunday December 23, 2012 @01:49PM
(#4960220)
I tried that too (https://github.com/mihaip/web-experiments/blob/master/tempor...). It still flickers, I'm guessing because the frame delay interval is specified as an integer, and both 16 and 17ms don't quite line up with 60Hz (or whatever the screen's refresh rate is).
It actually uses two fonts, each with a random half the characters, and missing the other random half. The "font-face" CSS declaration lists both of them, so when a character in one isn't present, it falls back to the other.
Everything looks perfect to the user, but it basically renders the fonts worthless for anything except web use, since system tools or Photoshop can't use character-based font fallbacks the way browsers can. Pretty clever, really.
Now, obviously, the way my eyes do it is temporal averaging. Thus, a camera with a sufficiently long exposure would capture it just the same. What it does prevent is screenshots, taken internally by the device - which generally don't do averaging or have a concept of "exposure". Of course, that could be implemented, but it's not standard at present.
He mentions using more than two frames - a less precise approach is to just add massive random noise over an indefinite number of frames (a noisy video of a static image), and instead of taking care that they cancel out, just rely on statistical convergence. Depending on how much noise is added, it gets more difficult to see the original.
I guess there's a risk that only a little noise is added in some frames, revealing the person. So perhaps instead of adding random noise, you use offsets of a legitimate face. This would make either single frame actively misleading, and perhaps not obviously distorted. Your eyes wouldn't be deceived (I think...), because they average the pixels, like a long exposure.
Also, one could selectively apply the technique - as google street-view blurs out people's faces, but nothing else. This might reduce the flicker.
Hmm. It didn't work for me at all. On the latest Firefox beta it was flickering at about 10fps (ballpark guess), which was slow enough for me to see the individual images and made it look like the normal picture plus horrible static (IE, analog TV noise of old). It also took 40% of my CPU.
It looks better on chrome (and only took 10% CPU), but there's still a lot of noise there. And the flickering is unbearable.
This definitely isn't universally true. The flickering was immediately obvious to me, and it induced a headache fairly quickly.
I wonder if there's a way to obscure the source image even more though; while the details aren't clear the the source positive and negative frames, it's still pretty clear that it's an image of a face. Perhaps the addition of some sort of noise that could be cancelled out would work.
It would also be interesting to see this applied to video streams in addition to just static images.
EDIT: A very simple workaround that would be easy for the general public is to just take a picture of the screen with another device. Example: http://i.imgur.com/ZLdpp.jpg
I don't think that this technique (even in a more complicated form) could ever be exploit-proof. Even with more randomness or noise, a computer can ultimately compute the same averaging that our eyes are doing, and could always get the source image back.
There's an even easier exploit too: just record the screen with another device.
(It took me a moment to locate it since I wasn't reading carefully.)
I'm particulary sensitive to this; back in the days of CRT monitors I could not use any with a refresh rate of less than about 75Hz without being consciously aware of the flicker.
On topic, the second thing I noticed (after the bloody obvious flicker even with no eye movement) was a pattern marking the boundary between the two halves of the images. Then I remembered that I was running my retina display at a higher than native resolution, and scaling of course introduces artifacts at edges.
Besides, who doesn't love 10% CPU usage to display a static image?
This provides 'good enough' security for most people's uses.
http://en.wikipedia.org/wiki/Smart_cow_problem
I don't remember there being as much flicker, but since the goal was to get more subtle colors the images were probably much closer to each other than this demo.
I didn't realise anybody ever bothered to do this on the Amiga - 4096 colours used to be enough for anybody - but of course there's no reason why you couldn't. The effect would probably only be improved with colours that are closer together.
However, I said "more than 4096 colors"...
Source: https://gist.github.com/4360664
Results: http://imgur.com/a/hBMed
I doubt any technical control will solve the ephemeral picture problem because of the analog hole.
For this specific technique, if a photo of the screen doesn't defeat the dithering (in my quick tests the photos were worse than what I could see on the screen but better than either of the component frames [1]) you could reconstruct the image from a movie fairly quickly.
[1] http://imgur.com/jA5f6
Mission Impossible had the best one and with that once you have read the message your phones battery could catch fire. Even then you could not garantee anybody else filming it.
Still nice idea and it does hinder screenshots, though they could just take a few and grab both frames to combine.
The hack is cool anyway.
I teach in a public school, and a lot of my students have Android phones. The plurality of them have the Samsung Galaxy S III, actually.
But your point still stands. This technique just has to make it relatively inconvenient for the average non-technical user.
I would hate to see this on a film, it'd do my eyes in completely.
Still, really nice concept.
I for one really like the proof of concept for its creativity. I haven't seen this earlier.
It is also limited to some extent by the lack of remote attestation of non-jailbroken-ness using some sort of hardware crypto module.
No. It doesn't.
That's how it goes. The split-second something transits on the Internet there are countless copies on servers, caches, proxies, etc. In addition to that TFA mentioned the loophole that, well, once something can be seen it can be recorded using lots and lots of endless external means.
Oh, and that "everything sticks around forever" is not just for stuff on the Internet: it's much worse than that.
It's that "anything that is on any device connected to the Internet" can potentially stick around forever.
Ask Scarlett Johannson how it worked for her private pic in her smartphone...
People saying that "our pics are never saved anywhere" are using deception to lure clueless people in.
No, we just took our experience from the real world and applied it to this new-fangled communications thingy. Physical things can "stick around forever" if cared for properly. There's no law that says I have to destroy my things after some period of time.
Now that we have digital copies of things, those copies are made of intangible ephemeral bits that are copied repeatedly to get them from one place to another. I think the author's statement that you quote overlooks that digital things are analogies of physical things- physical things that we've expected to last for as long as we like.