<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>RC4 CryptoAPI Encryption Password Verification</title><link>http://blogs.msdn.com/b/openspecification/archive/2009/05/08/dominic-salemno.aspx</link><description>RC4 CryptoAPI Encryption Password Verification 
 -=- Dominic Salemno -=- 
 
 Information security is important in this day and age. The most important core asset of any particular company is their information. Hence, the essential need for cryptography</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: RC4 CryptoAPI Encryption Password Verification</title><link>http://blogs.msdn.com/b/openspecification/archive/2009/05/08/dominic-salemno.aspx#10370366</link><pubDate>Tue, 20 Nov 2012 21:46:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10370366</guid><dc:creator>FSS2012</dc:creator><description>&lt;p&gt;I am using VB Express 2010 .NET 4.0 client profile and trying to build an office password verifier routine. &amp;nbsp;Using your test data above I have successfully gotten your output for Steps 1, 2, and 4. I am stumped on Step 3 as I cannot get the expected output from the RC4 operation on the EncryptedVerifierHash utilizing the same derived encryption key. &amp;nbsp;Here is the output I am getting from each of the steps:&lt;/p&gt;
&lt;p&gt;Step 1a (H ought): 99-1A-E8-18-8C-B3-9B-43-AC-AA-BA-8B-19-2C-6D-30-44-97-38-53&lt;/p&gt;
&lt;p&gt;Step 1b (H Final): D7-BE-C9-31-88-E3-39-D7-7E-1B-99-1E-DF-47-C9-8C-8D-6A-99-40&lt;/p&gt;
&lt;p&gt;Step 1c (Derived Key): D7-BE-C9-31-88-00-00-00-00-00-00-00-00-00-00-00&lt;/p&gt;
&lt;p&gt;Step 2 (Decrypted Verifier): 44-65-87-98-44-00-00-10-11-41-65-AA-A8-BA-DC-ED&lt;/p&gt;
&lt;p&gt;**Step 3 (Decrypted Verifier Hash): 59-48-2F-90-B0-F0-20-8E-ED-60-10-DD-5C-7A-F7-3E-D7-3B-1D-B2&lt;/p&gt;
&lt;p&gt;&amp;#39;Step 4 (Hashed Decrypted Verifier): 97-17-92-03-C1-89-6A-33-C2-C1-E8-02-A6-76-6F-8B-24-E4-B0-7C&lt;/p&gt;
&lt;p&gt;For Step 3: &amp;nbsp;I have set the array below for the Encrypted Verifier Hash&lt;/p&gt;
&lt;p&gt;Dim testencryptedVerifierHashValue As Byte() = {&amp;amp;HB6, &amp;amp;H35, &amp;amp;H94, &amp;amp;H44, &amp;amp;H7F, &amp;amp;HAE, &amp;amp;H7D, &amp;amp;H49, &amp;amp;H45, &amp;amp;HD2, &amp;amp;HDA, &amp;amp;HFD, &amp;amp;H11, &amp;amp;H3F, &amp;amp;HD8, &amp;amp;HC9, &amp;amp;HF6, &amp;amp;H19, &amp;amp;H1B, &amp;amp;HF5}&lt;/p&gt;
&lt;p&gt;And I pass it, along with the Derived Key (Step 1c) to the RC4 routine.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim testDecryptedVerifierHash() As Byte = RC4EnDeCrypt(testencryptedVerifierHashValue, testDerivedKey)&lt;/p&gt;
&lt;p&gt;I would expect the output of this to be 97-17... but I get 59-48... What am I missing? &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for your insight and assistance.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10370366" width="1" height="1"&gt;</description></item><item><title>re: RC4 CryptoAPI Encryption Password Verification</title><link>http://blogs.msdn.com/b/openspecification/archive/2009/05/08/dominic-salemno.aspx#10259664</link><pubDate>Mon, 23 Jan 2012 16:21:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10259664</guid><dc:creator>Norman</dc:creator><description>&lt;p&gt;Quick question how do I get to EcrptionVerifier.Salt if the password I have needs to use the Salt to decrypt the CryptSession10Container.data in which the Salt is located? &amp;nbsp;Isn&amp;#39;t this chicken and egg scenario? &amp;nbsp;Per &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/dd951371(v=office.12).aspx"&gt;msdn.microsoft.com/.../dd951371(v=office.12).aspx&lt;/a&gt; : The data field of this CryptSession10Container record MUST be encrypted as specified in [MS-OFFCRYPTO] section 2.3.5.1.&lt;/p&gt;
&lt;p&gt;Please help. &amp;nbsp;I am trying to figure out how to decrypt a Powerpoint Binary File with given password.&lt;/p&gt;
&lt;p&gt;Thank you in advance.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10259664" width="1" height="1"&gt;</description></item><item><title>RC4 CryptoAPI Encryption Password Verification | ASP NET Hosting</title><link>http://blogs.msdn.com/b/openspecification/archive/2009/05/08/dominic-salemno.aspx#9597972</link><pubDate>Sat, 09 May 2009 01:37:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9597972</guid><dc:creator>RC4 CryptoAPI Encryption Password Verification | ASP NET Hosting</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://asp-net-hosting.simplynetdev.com/rc4-cryptoapi-encryption-password-verification/"&gt;http://asp-net-hosting.simplynetdev.com/rc4-cryptoapi-encryption-password-verification/&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9597972" width="1" height="1"&gt;</description></item></channel></rss>