4 ms·
Entweet: Securing Twitter
- untog 11y agoNot knowing much about the encryption used, would it end up using extra characters over a normal tweet?
- dewey 11y agoNo, it's just taking up the space used to post an image. Here's an example tweet: https://twitter.com/shazow/status/605748307688890368 https://twitter.com/shazow/status/605748307688890368
- untog 11y agoHuh. Surely there's a better way to do that than post text in an image? Even just using pixels to encode the text.
- dewey 11y agoI don't think it's a serious suggestion. It's just a fun hack.
- untog 11y agoOh I know. But I can still want hacks to make the most efficient use of space :)
- Lukasa 11y agoSo you can't do a direct 1-to-1 mapping of pixels to bytes, because Twitter re-compresses the image. You cannot rely on the binary representation of the image to make that work. However, there are plenty of other, less funny, options, like QR codes or High Capacity Colour Barcodes.
- wongarsu 11y agoThe resulting message should be much larger than just 140 characters, mostly because it's not only encrypted but also signed with GPG. It appears that this problem is solved by creating an image with the encrypted text and adding that image to the tweet. The decryption uses a simple character recognition algorithm to read the message back from the image.
- nchelluri 11y agoIt seems that companion browser extensions should be first on the TODO list.
- FiloSottile 11y agoFor the curious and lazy: it works by rendering the signed message to an image and tweeting that [2]. Then it relies on the fixed grid [0] and font to do a "poor man's OCR" [1] when decoding. [0] http://git.io/vIWll http://git.io/vIWll [1] http://git.io/vIWln http://git.io/vIWln [2] https://twitter.com/Lukasaoz/status/607632001210925056 https://twitter.com/Lukasaoz/status/607632001210925056
- Lukasa 11y agoEntirely accurate! The interesting thing about the poor man's OCR is that it works way better than out of the box OCR tools. They're all built around handling arbitrary, often quite noisy input, so their handling of 1s and ls in this data is often not great. Doing the cheap OCR works really well because we can overfit our data: we know the font, we know the grid, and we know the orientation, so our problem is way simpler than generic OCR.
- higherpurpose 11y agoTwitter wanted to do end-to-end encrypted DMs once, until it gave up on the project with no explanation: http://www.theverge.com/2014/3/19/5523656/twitter-gives-up-on-encrypting-direct-messages-at-least-for-now http://www.theverge.com/2014/3/19/5523656/twitter-gives-up-o...
- johnrob 11y agoWhy not use the pixel values themselves to encode the data? Each pixel's RGB can encode three characters (one for each byte value). The resulting image would be much smaller. (Not sure how twitter might alter the image though, which would corrupt the data).
- Lukasa 11y agoTwitter re-compresses the image, sadly, so that doesn't work. As I said elsewhere, there are other options, like QR codes or high capacity colour barcodes, but those aren't funny.
- shockzzz 11y agoHah! Twitter for Enterprise, Bizniz, and Secrets! Revolt and rejoice! But... if this relies on fixed-ish protocol (fixed grid & font), can't The Man Upstairs censor it just as easily?
- Lukasa 11y agoYes. Remember, signing/encryption do not ensure that you can communicate, only that if you communicate you can do so with integrity, authenticity, and privacy. The same limitation applies here, with the added bonus of this particular method being totally stupid.
- 7ewis 11y agoCould someone explain like I'm 5 how this works? Is it just standard public/private key?
- dewey 11y agoYes, just like regular encrypted email would work. Instead of sending the encrypted text this script is rendering an image (just like the screenshot of an encrypted email) and posting that. The other party is just running OCR on that image (Just like a regular scanner software would do) to convert the text visible in the posted image back to text which will be decrypted and displayed to the user.
- flockonus 11y ago_inconvenient_ cannot be stressed enough
- AndrewDMcG 11y agoLOL at "GPG is famously easy to use"