Convopage
See the entire conversation
Thomas H. Ptáček
@tqbf
Reminder that it’s 2017 and there’s still no reliable built-in way to encrypt a file to send to a peer on any mainstream OS.
154 replies and sub-replies as of Jan 02 2018
Thomas H. Ptáček
@tqbf
You’re thinking, “but ZIPs can be encrypted!” and NO THEY CAN’T. Most deployed ZIP programs use fake encryption.
Thomas H. Ptáček
@tqbf
“Well you can just have people install” BZZRT fssst CRACK you’ve missed the point.
Thomas H. Ptáček
@tqbf
Encrypting a file is an unbelievably simple cryptographic problem; literally the “hello world” of the problem space. And nothing does it.
Thomas H. Ptáček
@tqbf
You will have a TLS handshake with not one but two different post-quantum key exchanges before you have simple file encryption.
Vikas
@vikasgorur
it's so simple just install emacs+gnus+plan9 bruh /s
Allan Wirth
@Allan_Wirth
Why doesn't windows pass protected zip count?
Thomas H. Ptáček
@tqbf
Which version of Windows defaults to AES rather than Bass-O-Matic or whatever it is?
Allan Wirth
@Allan_Wirth
Thought it was AES but yeah looks like it's still garbage
tvldz
@tvldz
Ah yes, the backdoored Blowfish prototype, Bass-O-Matic.
Matthew Hall
@_castleinthesky
Two reasons. Zip-Crypto is broken. PSK/symmetric crypto is broken by users. Strong ciphers and key exchange, simplified, is what is required
Thomas H. Ptáček
@tqbf
You’re overthinking. A reasonable password-based file encryption scheme would address the complaint. We can’t even get that.
Matthew Hall
@_castleinthesky
I might be overthinking, but explain reasonable please. Insecure crypto and weak psk's are not reasonable to me.
Matthew Hall
@_castleinthesky
Too true. Linux now offers socket level TLS encryption but there's no social medium agnostic method of encrypted content exchange.
Thomas H. Ptáček
@tqbf
The sad thing is that there is that standard: AES-encrypted ZIPs. But built-in zip programs sabotage it.
Matthew Hall
@_castleinthesky
Afaik Windows built in file handler doesn't support AES and just zip-crypto (feel free to correct me)
Thomas H. Ptáček
@tqbf
Note that there are people that fervently believe this isn’t true. It’s terrifying.
Chris Pilkington
@cjp
Assuming
winzip.com/aes_info.htm
. Keep in mind PKWARE continues to offer an alternative "standard" in SecureZIP, which confuses consumers.
hanno
@hanno
you know that there are two incompatible variants of AES-encrpyted ZIP and none of them is "a standard" in any reasonable sense of the word?
hanno
@hanno
I checked this a while ago, winzip came up with something (that is not metadata-hiding), then pkware invented their own incompatible thing.
hanno
@hanno
afair winzip variant: more widely supported, pkware: encrypts filenames as well, provides "algorithm agility"
Matthew Hall
@_castleinthesky
Yay for standards! Also who thinks this is a good standard to base sharing upon?
Matthew Hall
@_castleinthesky
Have you come across 'self extracting pgp archives'? Who thought this was a good idea??
Thomas H. Ptacek
@tqbf
everything is terrible
Julian Norton
@JulianNorton
What's wrong with Keybase?
keybase.io
It's pretty accessible for people with non-technical backgrounds.
Simon Zerafa
@SimonZerafa
7zip is fairly standard for Windows PC's. No so for other platforms? 🤔
Matthew Hall
@_castleinthesky
7zip is free (and open) but is not a built-in for every platform. SSL/TLS is available at transport but no standard for application. Discuss
Steffen Christensen
@Wikisteff
…on purpose.
Garrett LeSage
@garrett
It's not an exact match, but
send.firefox.com
is for simple, encrypted file sharing & it works everywhere w/o installation.
Firefox Send
Encrypt and send files with a link that automatically expires to ensure your important documents don’t stay online forever.
send.firefox.com
Zygote
@Z_gote
miniLock by
@kaepora
is the simplest way I know but it's not by default on OS so I guess again missing the point :p
Thomas H. Ptáček
@tqbf
You might as well just install PGP if you’re going to install something, because at least some peers will have it.
Zygote
@Z_gote
PGP and will lose 90% of people because of keys management. miniLock at least solve that problem :)
Thomas H. Ptáček
@tqbf
What “key management”? Just use a damn password. That’s all 99% of people will do anyways. But no: no built-in way.
glyph
@glyph
*can* GPG just encrypt a file with a password, no persistent key?
Thomas H. Ptacek
@tqbf
Yes.
glyph
@glyph
Huh, I did not know about gpg -c. Thanks.
You and 52 others
@kragen
it's been there at least since the first version of PGP I used in 1993
Thomas Duboucher
@Serianox_
You should go with 7z then. That's the least unfriendly & obsolete way to encrypt files, plus it has a graphical ui on most OSes. :)
Thomas H. Ptáček
@tqbf
If you’re going to ask people to install something to encrypt with, 7z is the most dangerous option; suggests .ZIP safe in common case.
Thomas H. Ptáček
@tqbf
Might as well just ask people to install GPG.
Thomas Duboucher
@Serianox_
True on this point, because it assumes the recipient is more likely to to be able to read a zip file than a 7z file. :(
Thomas H. Ptáček
@tqbf
Apple and MSFT could trivially implement the AES standard for ZIP files and call them .aes.zips or whatever. But nope.
Thomas Duboucher
@Serianox_
I wouldn't recommend Zip in any cases. 😀 cc
@angealbertini
👼Ąż杏
@angealbertini
what about a simple python script to provide the decryption, with appended encrypted data ?
Thomas Duboucher
@Serianox_
"user-friendly" 😄
👼Ąż杏
@angealbertini
python script can't provide a prompt to enter a password? or ?
lime
@nyctereutes
Windows does not bundle Python as far as I know, so you're back to "please install this first"
lime
@nyctereutes
A cross-platform self-decrypting blob would be nice, although a bit scary to execute
👼Ąż杏
@angealbertini
then a .bat/shell script ? ;)
lime
@nyctereutes
I was half expecting you to post a polyglot proof of concept by now ;)
👼Ąż杏
@angealbertini
hold on. it's not self-aware yet :)
Evan Sultanik
@ESultanik
unzip -p pocorgtfo04.pdf lenticrypt/lenticrypt.py | python -c 'import sys; exec
sys.stdin.read
()' -e SECRET PLAINTEXT -o CIPHERTEXT
Thomas Garner
@thomas536
define user friendly in this context??
Thomas Duboucher
@Serianox_
Available by default, cross-platform, usual user interface e.g. "right-click -> encrypt".
Thomas Duboucher
@Serianox_
I should be able to explain how to do it on the phone with my mom, who is not an engineer, within a few minutes. :)
Fred Crowson
@fcbsd
would
@Tarsnap
count? Or is an online encrypted backup to remote?
Thomas H. Ptáček
@tqbf
No, Tarsnap would not count as a built-in way to encrypt a file before sending it.
Kal
@khnidk
Encryption has never been the core problem. It's the key exchange...
Ian Kirker
@ikirker
openssl will do it on the command-line, but I guess you mean with a better interface than that.
Thomas H. Ptáček
@tqbf
Unix nerds can encrypt files. They can also install random stuff. Nobody else can use the terminal.
Tomasz Stachewicz
@_tomash
non-nerds don't care about file encryption. the problem is educational first, software second.
♫ BRⒶD ♫
@BradRubenstein
For some use cases, one can resort to password protected PDF's, which encrypt content with AES, right?
You and 52 others
@kragen
How broken is the encryption algorithm Phil came up with for pkzip? Last I remember it had weaknesses but wasn't, like, Vigenère.
ROTOPE~1
@RotoPenguin
I think it takes minutes to crack at worst.
You and 52 others
@kragen
Hmm, I don't think so? "In particular, it is vulnerable to known-plaintext attacks, which are in some cases made worse by poor [RNGs]"—WP
Jeff Atwood
@codinghorror
does sending through a website count?
Thomas H. Ptáček
@tqbf
No, because now you have to trust the website.
Jeff Atwood
@codinghorror
don't we have to trust the third-party executables in a similar manner?
Thomas H. Ptáček
@tqbf
I mean, your file is literally going to be parked on that server in plaintext. Essentially, you’re defining the problem away.
Jeff Atwood
@codinghorror
Mostly I'm trying to define an easy way for users, since OS makers will never ship this right IMO
Thomas H. Ptáček
@tqbf
It’s a trivially simple problem to solve! Just implement the AES ZIP standard!
Code Munkee
@HollandCoding
"It’s a trivially simple problem to solve" So is star lifting, we just need the economic output of the planet many times over.
Thomas H. Ptáček
@tqbf
It’s literally a simpler problem than ZIP or tar.
Code Munkee
@HollandCoding
Rui Pacheco
@lapinrigolo
Keybase?
Thomas H. Ptáček
@tqbf
No, Keybase does not count as a built-in way to encrypt a file before sending it.
Piotr Kaminski
@piotrekkaminski
Does PDF built on encryption (and similar features for most popular documents) count?sending weird files,use GPG. Avg users Send DOC/PDF
Dnavid
@davidweisss
Do you consider node's built-in crypto api as standard?
Julien Vehent
@jvehent
Not with
send.firefox.com
, though you do have to trust the javascript we serve.
Firefox Send
Encrypt and send files with a link that automatically expires to ensure your important documents don’t stay online forever.
send.firefox.com
Thomas H. Ptáček
@tqbf
That is the same as trusting the server.
Charlie Cummings
@chc40
I use instant.io when I want this; web BitTorrent so it doesn't even hit 3rd party server
Charlie Cummings
@chc40
...except now thinking about it I'm not sure it actually encrypts like I thought it did and the https is just useless
Dnavid
@davidweisss
If the server just encrypts, sends to ipfs, returns key and url, then erase data? Open source tool you can run in any server.
🛵 jens
@jhembach
macOS encrypted disk images (.DMG) files aren’t exactly easy, but not terribly difficult to create and work with. Best current option?
Jeff Atwood
@codinghorror
yeah full disk encryption basically works in Win / OSX / Linux? Doesn't get the file off your hard drive encrypted though.
jens
@jhembach
I meant the encrypted DMG files you can create with Disk Utility, which work as containers of any size. Like ZIP files, but less convenient.
Phil Burk
@PigInZen67
At the risk of exposing my ignorance, why don't either openssl and Disk Utility qualify for this on macOS?
Thomas H. Ptáček
@tqbf
I’m being imprecise because Twitter, but yes, disqualify anything that involves dropping to a terminal.
Phil Burk
@PigInZen67
Fair enough. And Disk Utility can only encrypt folders or drives.
Andrew Wooster
@wooster
Disk Utility has a GUI.
Phil Burk
@PigInZen67
It doesn't encrypt files, only folders and volumes.
Thomas H. Ptáček
@tqbf
It’s the closest thing we’ve got and a reasonable response, but not nearly good/simple enough.
Andrew Wooster
@wooster
You can create a DMG with a single file in it.
Phil Burk
@PigInZen67
Yes but that's not what
@tqbf
was stating. You can encrypt single files with openSSL from the command line but that's not easy.
Andrew Wooster
@wooster
Okay.
Brian La Roux ✨🌠🎇🎆🌌
@BrianLaRoux
I think that's a bit short-sighted; given a worked example put in front of them, most ppl ought be able to grasp openssl-enc on a terminal.
Phil Burk
@PigInZen67
You haven't met my wife.
Brian La Roux ✨🌠🎇🎆🌌
@BrianLaRoux
I'd argue for one to u/stand & properly use strong encryption req's a certain level of attention-to-detail, it's just nature of the problem.
Brian La Roux ✨🌠🎇🎆🌌
@BrianLaRoux
For anyone that's not willing to put in the learning effort, they'll just have to learn to trust other ppl to set things up on their behalf.
Brian La Roux ✨🌠🎇🎆🌌
@BrianLaRoux
…although to be fair openssl enc's passphrase-to-key algorithms have borne past criticism (unless your pp has near-same entropy as a key)
JTL
@jtl999
but muh pgp! /s
John Ripley
@jhripley
Depends if you count iMessage.
Thomas H. Ptáček
@tqbf
I do not.
Evan Story
@estory1
Signal? Not really designed for file sharing, but is capable to some extent, is OSS, and end-to-end encrypted.
Evan Story
@estory1
Although, Signal fails the "just install..." condition...
CopperheadOS
@CopperheadOS
Signal is strongly tied to phone numbers and requires having an Android or iOS device. It's not a generic solution for this problem space.
CopperheadOS
@CopperheadOS
If it had a desktop client usable without the Android / iOS app and had an alternative to phone numbers it'd be closer to filling the niche.
Evan Story
@estory1
Agreed, both are big gaps. What about Wire? Lack of OS+UI level crypto seems odd in hindsight: health, finance, and .mil all badly need it.
Tim Dierks
@tdierks
It's not clear to me why iMessage is excluded, but Mac also ships with ability to create encrypted disk images that seems to qualify.
Steffen Christensen
@Wikisteff
"Drop to shell" is terrible
#UX
for non-technical people.
Steffen Christensen
@Wikisteff
A trivial
#UX
for OS secure encryption is "encrypt this file/folder" as a pop-up and button in properties, with a little lock on the icon.
Tim Dierks
@tdierks
Who said anything about the shell?
goo.gl/images/n9B7UH
Steffen Christensen
@Wikisteff
That's not terrible. It's buried in a utility, you have to pick your options right, and you can save your password (in the cloud?), but good
Steffen Christensen
@Wikisteff
…it is installed by default. So there's that! 👍
Tim Dierks
@tdierks
I think saving the password is in the local keychain. I'm of the vague belief that Apple doesn't back it up to cloud as a matter of policy.
Steffen Christensen
@Wikisteff
#hattip
Jesse Brown
@bionicpill
This is the technique I've had to use in the past. Not sure it meats all of
@tqbf
's standards but it was the best I could find.
John Ripley
@jhripley
A sizeable fraction of the world securely sends files over iMessage every day, but I'm guessing there's a reason it doesn't count.
Tim Dierks
@tdierks
can make his own rules, but I can't see why iMessage isn't a secure solution for sharing files among Apple users.
John Eisenman
@jiceman
I'd like to hear whether or not
@tqbf
thinks that this qualifies.
Tom Lowenthal
@flamsmark
Why not?
rez
@robzr
Must not be an Apple fan.
John-Mark Gurney
@encthenet
Clearly you missed the memo that iMessage trusts what ever keys Apple says the other user has, so you can't be sure no one else got it.
Rune Sørensen
@runesoerensen
How about macOS Disk Utility's "Image from Folder" feature with encryption?
Mikael Eiman
@m_eiman
How about Airdrop?
Benjamin
@bwl
I think you’re right about this one. But may be unverifiable with closed source? Gonna take a look into will report back.
Benjamin
@bwl
Airdrop uses two 2048bit TLS keys one for your hardware and one for your apple id. ‘Everyone’ bypasses apple id check only uses hardware key
Benjamin
@bwl
I think airdrop is secure peer to peer transfer. But closed source, amount of logging unknowable.
Colin Percival
@cperciva
Hey, FreeBSD ships with rot13 installed!
Allan Jude
@allanjude
I recently removed the 3des tool that Kirk had been using for the last 10-?? Years
John-Mark Gurney
@encthenet
Yeah, 64-bit block ciphers need to be stop being used now.
Andrew Wooster
@wooster
Encrypted disk images on OS X?
Matthew Gregg
@amblin
Does Mozilla "Send" count?
Thomas H. Ptáček
@tqbf
No, it doesn't.
Federico Bett
@fede_cba
Why not? Afaik it does the encryption client side
Thomas H. Ptacek
@tqbf
It requires you to trust Mozilla’s servers every time you encrypt.
Matthew Gregg
@amblin
Can eliminate any browser based solution then?
Thomas H. Ptacek
@tqbf
Yes.
dstadulis
@dstadulis
If your model doesn't allow in-browser, client-side encryption, your model requires computer to be airgapped and OS never updated from inet
dstadulis
@dstadulis
Otherwise the attack you're protecting against, by not allowing binaries served from internet, is a potentiality to the target machine.
Brian La Roux ✨🌠🎇🎆🌌
@BrianLaRoux
I noticed a recent build of Mozilla Thunderbird I installed (on MacOSX) had Enigmail built-in (PGP add-on), you just had to generate a key.
Voodoo artisan
@andrewhowdencom
Gpggggg. (Only half troll I actually find it fine to use)
Alfie John
@alfiedotwtf
Encrypted DMGs works in OSX, but wouldn't say it's usable by the average person
rez
@robzr
As long as key management is a manual process, encryption will not be ubiquitous for average people.
Alfie John
@alfiedotwtf
Knowing the average user, keys will be sent in a plaintext email with a link to the encrypted file
John Spurlock
@johnspurlock
Not OS built-in, but I've recently started using
send.firefox.com
for this use case, pleasantly surprised so far. Kudos to
@mozilla
!
Firefox Send
Encrypt and send files with a link that automatically expires to ensure your important documents don’t stay online forever.
send.firefox.com
Daniel Hadfield
@daniel_hadfield
GPG
DNA schedule
@ryanprior
For this to be true, you have to discount anything shipping Gnome or KDE as being a mainstream OS. About 3% of the market.
DNA schedule
@ryanprior
better: "Reminder that it's 2017 and neither MS nor Apple include a convenient way to encrypt files on the desktop. So use GNU/Linux."
Thomas H. Ptacek
@tqbf
And after that I will drive a roofing nail into each of my maxillary sinus cavities.
DNA schedule
@ryanprior
Using software that respects you isn't an indulgence & you don't need to self-flagellate. You deserve good things. Really.
Thomas H. Ptacek
@tqbf
May your next job require you to track hours using a Flash application that can only be loaded from IE.
DNA schedule
@ryanprior
Having gone through college & 7 jobs using GNU/Linux on the desktop and only occasionally used a Windows VM, I can tell you it's no sweat 👌🏻
Thomas H. Ptacek
@tqbf
Windows VMs 10 layers deep is what I wish upon you for treating my mentions as an opportunity to evangelize, Slashdot-style.
DNA schedule
@ryanprior
I had no idea it you might find the suggestion distasteful, sorry! Should I delete the tweet?