Welcome to the CLR security team's Codeplex site. On this site you'll find a set of projects that extend the security APIs shipped with the .NET framework to provide additional functionality. We also have some tools to help in debugging security related
problems in your code.
The latest rollup package of all of the assemblies on this site can be found here:
CLR Security June 2010 Release
. Note that this release will be the final release of the CLR Security CodePlex project which supports Visual Studio 2008 and the .NET Framework v3.5.
Security.dll provides a set of extension methods to ease working with the Code Access Security system in the .NET Framework. Within this project you will find:
- Methods to create partially trusted instances of objects
- Methods to determine the grant set of an assembly or AppDomain
- Methods to help in creating and examining simple sandbox domains
- Methods to make working with classes like Evidence and SecurityElement easier
Download Security 1.2
Security.Cryptography.dll provides a new set of algorithm implementations to augment the built in .NET framework supported algorithms. It also provides some APIs to extend the existing framework cryptography APIs. Within this project you will find:
- A CNG implementation of the AES, RSA, HMACSHA2, and TripleDES encryption algorithms
- A CNG implementation of a random number generator
- A CNG implementation of the PBKDF2 key derivation algorithm
- A CNG implementation of authenticated symmetric encryption.
- A class that allows dynamically creating algorithms both from this library as well as all of the algorithms that ship with .NET 3.5
- An enumerator over all of the installed CNG providers on the current machine
- Extension methods that allow access to all of the keys installed in a CNG provider, as well as all of the algorithms the provider supports
- Extension methods to access X509Certificates that store their key with CNG, as well as create self signed X509Certificates.
- Other utility types and methods
Download Security.Cryptography 1.7.2
Have you ever run into an indecipherable cryptographic exception complaining about "Padding is invalid and cannot be removed" when using the .NET Framework's symmetric algorithms? Since nearly all bugs relating to symmetric algorithms tend to
result in this same exception, it can be incredibly difficult to track down exactly what went wrong to cause the exception. Security.Cryptography.Debug.dll is a tool that can be used in these circumstances in order to help you figure out the root cause of
your cryptographic exception.
Download Security.Cryptography.Debug 1.1
PTRunner is a host application which runs programs in a sandbox. It allows you to choose from a set of standard CLR sandboxes (such as Execution, Internet and LocalIntranet), or provide your own custom permission sets. Additionally, PTRunner allows you to expose
a set of fully trusted assemblies to the code in the sandboxed AppDomain.
PTRunner is a .NET 4.0 application, and requires the .NET Framework v4.0 beta 1 in order to run.
Download PTRunner 1.0