Password protection

User avatar
PaulB
BronzeLounger
Posts: 1598
Joined: 26 Jan 2010, 20:28
Location: Ottawa ON

Password protection

Post by PaulB »

I'm not a user of MS Office. A friend brought up a question this morning that no one present could answer. He wondered if an Office document that was password protected simply denied access in the absence of the password, or if the document was also encrypted so as to be unreadable through other means. If it is encrypted, how strong is the encryption?
Regards,
Paul

The pessimist complains about the wind. The optimist expects it to change. The realist adjusts his sails.

User avatar
stuck
Panoramic Lounger
Posts: 8176
Joined: 25 Jan 2010, 09:09
Location: retirement

Re: Password protection

Post by stuck »

As far as I know Office uses only simple password protection, there is no encryption. Certainly it is trivial to bypass the password on an Excel file. House rules don't allow me to explain how nor do I advocate you doing it unless you are confident you are not doing anything illegal by so doing. If you are still curious I'm sure you know how to use Google.

Ken

User avatar
StuartR
Administrator
Posts: 12604
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Password protection

Post by StuartR »

This depends on the office version you use. Here is a short excerpt from Microsoft 2007 Office system Document Encryption Improvements
Microsoft 2007 Office system Document Encryption Improvements wrote: Password protection is not a new concept in the Microsoft 2007 Office system, but it has been made stronger and easier to use. Previous versions of Microsoft Office used an RC4 stream cipher with a key length of up to 128 bits. The problem with this approach was that when changes are made to the encrypted document and the document is saved, the initialization vector (IV) remains unchanged and the same keystream is used to encrypt subsequent versions of the encrypted document. This weakness in the implementation of the RC4 encryption algorithm made it possible for hackers compare two versions of a password-protected file to discover the contents and allow unauthorized users to read its contents. A number of software companies took advantage of these limitations to make “password recovery utilities” that could decrypt RC4-protected documents. Obviously, it was time to move to a now a new means of encrypting documents.

Microsoft 2007 Office system document encryption is a significant improvement. The encryption information block is the same as in previous versions of Office, but the Microsoft 2007 Office system uses the Advanced Encryption Standard (AES) encryption, which is the strongest industry-standard algorithm available and was selected by the National Security Agency (NSA) to be used as the standard for the U.S. Government, AES has a default 128-bit key (which can be increased to 256-bit via the Windows Registry) and uses SHA-1 hashing. In addition, The Microsoft 2007 Office system improves the algorithm of converting passwords into keys: 50,000 SHA-1 sequential iterations are performed.
StuartR


User avatar
HansV
Administrator
Posts: 78474
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Password protection

Post by HansV »

Stuck is correct that encryption of Word documents, Excel workbooks etc. was easily bypassed in earlier versions of Office. Recent versions, however, offer strong encryption that is much harder to break.
Best wishes,
Hans

User avatar
PaulB
BronzeLounger
Posts: 1598
Joined: 26 Jan 2010, 20:28
Location: Ottawa ON

Re: Password protection

Post by PaulB »

Not looking to steal any state secrets here! My friend said that he stored account names and passwords in a password protected Excel file. That provoked a discussion of whether or not this was 'good enough' security for storing this information. From the responses above I take it that it is, provided he uses Office 2007 or later.

Thank you all.
Regards,
Paul

The pessimist complains about the wind. The optimist expects it to change. The realist adjusts his sails.

User avatar
HansV
Administrator
Posts: 78474
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Password protection

Post by HansV »

Yes, an encrypted Excel 2007/2010 (.xlsx, .xlsm or .xlsb) workbook with a sufficiently long password that cannot easily be guessed should be safe enough.
Best wishes,
Hans

User avatar
Argus
GoldLounger
Posts: 3081
Joined: 24 Jan 2010, 19:07

Re: Password protection

Post by Argus »

It started to get better in Office 2003 (and XP), even if the default encryption method, for compatibility reasons, was the 97/2000 technique; one had (and have) to select "Advanced". So one could add that with a good, strong, encryption type and a "strong" password, 2002 and 2003 are much better than earlier versions, and running with default settings.

2007 and onwards uses a strong encryption by default, as mentioned.

(Excel 7 (a.k.a. 95) etc. was and is very simple.)
Byelingual    When you speak two languages but start losing vocabulary in both of them.

User avatar
stuck
Panoramic Lounger
Posts: 8176
Joined: 25 Jan 2010, 09:09
Location: retirement

Re: Password protection

Post by stuck »

PaulB wrote:My friend said that he stored account names and passwords in a password protected Excel file.
Ah! In that case there are more appropriate alternatives. I use Password Safe simple, effective and the price is right :free: but there are lots of similar applications out there.

Ken