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

Browse by Tags

How to manipulate REG_MULTI_SZ values from the registry (C++)
Hi all, The other day I had to develop a small C++ sample which shows how to read the list of values of a REG_MULTI_SZ from the registry , and add a new value just after one of the values of the list. Additionally, I used methods and constants from tchar.h Read More...
Access Violation exception when loading a certificate in .NET (Windows Server 2003)
Hi all You may get an Access Violation exception when loading a certificate into a X509Certificate2 object, only after installing KB 938397 hotfix ( crypt32.dll v5.131.3790.4095 ) at Applications that use the Cryptography API cannot validate an X.509 Read More...
CAPICOM support on Windows 7
Hi all, CAPICOM has finally been deprecated , and it won't be supported on Windows 7 . This link is up to date and proposes alternatives to CAPICOM classes by using .NET classes and CryptoAPI : Alternatives to Using CAPICOM . The following article may Read More...
Working with CNG in .NET 3.5
Hi all, Do you want to work with CNG and .NET 3.5 and don't want to P/Invoke into CryptoAPI & CNG API ? Check out Security.Cryptography.dll library at CLR Security : " Security.Cryptography.dll provides a new set of algorithm implementations to augment Read More...
CryptographicException: The data to be decrypted exceeds the maximum for this modulus of 0 bytes
Hi all, Some time ago a customer of mine was getting the following CryptographicException when calling EncryptedXml.DecryptDocument method to decrypt an XmlDocument in their .NET app: [System.Security.Cryptography.CryptographicException] = {" The data Read More...
X509Certificate creates temporary files which are never deleted
Hi all, When creating an X509Certificate object in your .NET application (" X509Certificate cert = new X509Certificate(certBytes); ") you may see that two 0kb files are created in the Temp folder of your Windows Server 2003 , and are never deleted . After Read More...
How to timestamp Authenticode signatures when our proxy requires authentication
Hi all, The other day a customer of mine was trying to add an Authenticode signature with timestamp to their PowerShell scripts with PowerShell itself and its Set-AuthenticodeSignature cmdlet . He was able to sign the scripts just fine, but when using Read More...
MANAGED DEBUGGING with WINDBG. Locks
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Breaking on an Exception. Part 2 . LOCKS · We can see threads waiting for managed locks : All managed objects have a syncblock (4 bytes) before their Method Table and properties. It Read More...
MANAGED DEBUGGING with WINDBG. Breaking on an Exception. Part 2
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Breaking on an Exception. Part 1 . BREAKING ON AN EXCEPTION. Part 2 What happens if !PrintException doesn’t return anything, or when we break (i.e. with a breakpoint or manually – Ctrl+Break) Read More...
SubAuthentication package gets Zero LogonId
Hi all, The other day I worked on an issue related to a SubAuthentication package that one of my customers had developed. One of the things that package was doing was getting the LogonId field of the LogonInformation struct being passed to Msv1_0SubAuthenticationFilter Read More...
MANAGED DEBUGGING with WINDBG. Breaking on an Exception. Part 1
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Managed Heap. Part 5 . BREAKING ON AN EXCEPTION. Part 1 We can only break on exceptions when doing live debugging, but many of the commands explained here can be used when doing dump Read More...
MANAGED DEBUGGING with WINDBG. Managed Heap. Part 5
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Managed Heap. Part 4 . MANAGED HEAP. Part 5 · We can troubleshoot Loader Heap issues : An assembly can’t be unloaded while the AppDomain where it was created is still alive. We will Read More...
MANAGED DEBUGGING with WINDBG. Managed Heap. Part 4
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Managed Heap. Part 3 . MANAGED HEAP. Part 4 · We can troubleshoot Heap issues : These are some of the important performance counters we can check with Performance Monitor when having Read More...
MANAGED DEBUGGING with WINDBG. Managed Heap. Part 3
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Managed Heap. Part 2 . MANAGED HEAP. Part 3 · We can take a look to which objects reference which objects in the heap: We may see many objects in the heap that we think should have Read More...
MANAGED DEBUGGING with WINDBG. Managed Heap. Part 2
Hi all, This post is a continuation of MANAGED DEBUGGING with WINDBG. Managed Heap. Part 1 . MANAGED HEAP. Part 2 · We can take a look to the objects in the heap : We can see all objects in the heap: 0:004> !DumpHeap Address MT Size 7b463c40 790fd0f0 Read More...
More Posts Next page »
Page view tracker