Welcome to MSDN Blogs Sign in | Join | Help

Decrypt my World

Cryptography, Security, Debugging and more!

News

  • Any of my posts is supported under any Microsoft standard support program or service. They are provided "AS IS" without warranty of any kind, and confer no rights.

Where are my readers?

Locations of visitors to this page

Favorite Posts

April 2008 - Posts

ChangePassword method may fail with TargetInvocationException (.NET)
Hi all, welcome back, When working with System.DirectoryServices.DirectoryEntry in .NET , we may change the password of the user with a code like the following ( C# ): user.Invoke("ChangePassword", new object[] { oldPassword, newPassword } But invoking Read More...
How to get a list of all users in an OU (VBScript)
Hi all, welcome back, Today I'll post a very straight forward sample which gets a list of all users in an Organizational Unit ( OU ) in Active Directory ( AD ) using VBScript : ' Get OU ' strOU = "OU=Users,DC=domain,DC=com" ' Create connection to AD ' Read More...
DpapiProtectedConfigurationProvider fails while decrypting web.config (ASP.NET)
Hi, welcome back, The other day we faced a very similar issue to the one I commented on this post: RSACryptoServiceProvider fails when used with ASP.NET . We were getting a very similar exception: "System.Configuration.ConfigurationErrorsException: Failed Read More...
Certificate has private key but we get "the keyset does not exist" error
Hi all, welcome back, The other day we were using CAPICOM in a client script run in Internet Explorer . We were trying to sign some string with the private key of a certificate we previously installed in the client machine, but we kept getting the error Read More...
How to read a registry key and its values (VBScript)
Hi all, welcome back, Today I'll share with you a couple of VBScript samples I developed the other day. They use WMI and its StdRegProv class to read the Windows registry . This sample will take a registry key and show its subkeys and the values within Read More...
Win32_Process.Create fails if user profile is not loaded
Hi all, welcome back, The other day I worked on an issue which happened when using WMI method Win32_Process.Create to spawn a process from an ASP.NET application. This method was returning an ERROR_NOT_ENOUGH_MEMORY (8) and the new process wasn't created. Read More...
How to Encrypt and Decrypt with CryptoAPI and a user Certificate (Windows Mobile)
Hi all, welcome back, The other day I had the pleasure to collaborate with my colleague Raffaele Limosani on a CryptoAPI case in Windows Mobile . I don't give technical support to Windows Mobile, and I don't know the specifics on mobile development. He Read More...
Page view tracker