4 ms·
So, no matter how good your password, by default they shorten it to a 40-bit key, but they also allow you to override the encryption method? Seems similar to w
by Someone 9y ago
So, no matter how good your password, by default they shorten it to a 40-bit key, but they also allow you to override the encryption method?
Seems similar to what Office XP and 2003 do (https://en.wikipedia.org/wiki/Microsoft_Office_password_protection#History_of_Microsoft_Encryption_password https://en.wikipedia.org/wiki/Microsoft_Office_password_prot...).
Did Adobe and Microsoft design this together?
- sheetjs 9y agoModern versions of Office use stronger encryption methods. Office 2013 and 2016 by default use SHA-512 with AES-256-CBC. Given the constraints when the schemes were first devised, 40-bit represented a reasonable tradeoff given the computing power and understanding at the time.
- lvh 9y agoIn case anyone was confused as to how they use SHA-512, it appears they use it for password stretching. (I was unable to find anything about authentication tags, although I guess it's hard to get a chosen ciphertext oracle out of Excel files unless you find a computer consuming them?)
- blattimwind 9y agoI'm not so sure about that, since Excel files are not that unusual to exchange data and some web applications seem to process them automatically on some Windows server. However: these are never encrypted anyway.
- lvh 9y agoYes, hence "unless you find a computer consuming them" :-)
- 13of40 9y agoIIRC, by default the "agile" encryption scheme in office defaults to producing a key from a password with 100,000 rounds of SHA-512, with each iteration salted with an incrementing integer to prevent loops. It takes about 800ms to compute one key on a newish machine.
- btown 9y agoThis is really interesting! https://msdn.microsoft.com/en-us/library/dd924776(v=office.12).aspx https://msdn.microsoft.com/en-us/library/dd924776(v=office.1... seems to be the spec for this. Though I wonder if any vulnerabilities to this type of password stretching scheme have been discovered in the years since.
- blattimwind 9y agoThat's pretty much just PBKDF1.
- erpellan 9y agoI think this article only applies to older PDFs. From what I can tell, PDF2.0 changed the encryption to AES-256. Almost none of the PDF tools the article mentioned can even recognise PDF2.0 https://www.pdflib.com/knowledge-base/pdf-password-security/encryption/ https://www.pdflib.com/knowledge-base/pdf-password-security/...
- agumonkey 9y agoWasn't even aware that PDF2.0 was out
- dunham 9y agoNeither was I. It appears to have been released around July 2017 as ISO 32000-2:2017.
- phonon 9y agoI don't think there are any PDF 2.0 files "out in the wild" yet. In any case the article is about a 40 bit RC4 key. PDF has supported much much stronger encryption schemes for a very very long time. https://www.pdflib.com/knowledge-base/pdf-password-security/encryption/ https://www.pdflib.com/knowledge-base/pdf-password-security/...
- deleted 9y ago[deleted]
- blattimwind 9y agoI believe the various 40-bit encryption schemes from the 90s are based on USG regulation (cryptography export), not the ill-will of the vendors per se. https://en.wikipedia.org/wiki/40-bit_encryption https://en.wikipedia.org/wiki/40-bit_encryption
- deleted 9y ago[deleted]
- Someone 9y agoMakes sense (lots of it). Thanks.