![]() |
#1
|
|||
|
|||
![]() Hello, I am working on open password encryption of word 2010. i have got the way of encryption for office 2007. While surfing on internet i found that office 2010 is using SHA1 and AES 128 for its encryption but there is a little bit difference in encryption algorithm for office 2010. Is there anyone who can help me in solving this problem. I will be really thankful to him\her. Thanks, samdev |
#2
|
||||
|
||||
![]()
Hi samdev,
The available encryption algorithms to use with Office depend on the algorithms that can be accessed through the APIs in the Windows operating system. Office 2010, in addition to maintaining support for Cryptography API (CryptoAPI), also includes support for CNG (CryptoAPI: Next Generation), which was first made available in the 2007 Microsoft Office system with Service Pack 2 (SP2). See: http://technet.microsoft.com/en-us/l.../cc179125.aspx
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
Hii MACROPOD,
Thanks for your reply, I know, Office 2010 is using CryptoAPI. I want to know that Microsoft is using an algorithm for its password encryption in office 2007. Microsoft has updated its algorithm for office 2010 for increasing its security. I have got the algorithm but i think its not proper algorithm(something is missing), just an overview of encryption steps.Can you please help me out regarding this encryption steps problem. Any type of your help is truely welcomed. |
#4
|
||||
|
||||
![]()
Hi samdev,
As the article says, the encryption algorithm is not in Word but in the Windows OS. Therefore, it is not correct to say: Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
![]()
Hii MACROPOD,
Thanks for your response, I think you are getting me wrong, I am trying to decrypt the password using default setting of security in office 2010. During surfing on internet what i have got is that Windows is used only for change of security settings for password through registry keys. But in both cases encryption algorithm steps are same. |
#6
|
||||
|
||||
![]()
Hi samdev,
Quote:
Code:
Documents.Open FileName:="Document name & path", _ PasswordDocument:="Password for opening the document", _ WritePasswordDocument:="Password for saving changes to the document"
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
|||
|
|||
![]()
Hii MACROPOD,
As you said: Quote:
Thanks. Samdev |
#8
|
||||
|
||||
![]() Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#9
|
|||
|
|||
![]()
I have already gone through MS-OFFCRYPTO. But I have some problems:
As according to section : 2.3.4.11 and 2.3.4.12 1) In case of generating encryption Key, The initial password hash is generated as the following. H0 = H(salt + password) The salt used MUST be generated randomly. The hash is then iterated using the following approach: Hn = H(iterator + Hn-1) Where iterator is an unsigned 32-bit value which is initially set to 0x00000000, and is then incremented monotonically on each iteration until PasswordKey.spinCount iterations have been performed. The value of the iterator on the last iteration MUST be one less than PasswordKey.spinCount. The final hash data which is used for an encryption key is then generated using the following method: Hfinal = H(Hn + block_key) Where block_key represents an array of bytes used to prevent two different blocks from encrypting to the same cipher text. 2) In case of Initialization vector: another block key is used. IV= Salt key+Block key. i) Are the both block keys same or different ? ii) From where I can get the block keys ? Can anyone please help me out of this problem. Your help is heartly appreciated. Thanks, SamDev |
#10
|
||||
|
||||
![]()
Hi samdev,
You might be able to find out by posting on: MSDN (http://social.msdn.microsoft.com/For...gory/officedev); or MS TechNet (http://social.technet.microsoft.com/...ry/officeitpro)
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
Tags |
aes 128, password encryption, sha1 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ms word 2010 file opening password | prateek1108 | Office | 0 | 11-30-2011 03:40 AM |
![]() |
petec | Word | 10 | 09-25-2011 08:41 AM |
![]() |
Jamal NUMAN | Word | 2 | 04-17-2011 06:05 PM |
![]() |
Word Doc | Word | 1 | 10-08-2009 12:57 AM |
Retrict Method Condition | markp | Outlook | 0 | 12-22-2005 05:38 PM |