CryptSharp NamespaceCryptSharp

CryptSharp provides a number of password crypt algorithms - BCrypt, LDAP, MD5 (and Apache's htpasswd variant), PHPass (WordPress, phpBB, Drupal), SHA256, SHA512, and Traditional and Extended DES. Additionally it includes Blowfish, SCrypt, and PBKDF2 for any HMAC (.NET's built-in PBKDF2 implementation supports only SHA-1).

If you are looking to store passwords, odds are, CryptSharp has the algorithms you need.

Classes

  ClassDescription
Public classBlowfishCrypter
Blowfish crypt, sometimes called BCrypt. A very good choice.
Public classCrypter
Crypts and verifies passwords. The main class for most uses of this library.
Public classCrypterEnvironment
Lets you customize the list of crypt algorithms your program will accept.
Public classCrypterOption
Options that modify the crypt operation.
Public classCrypterOptionKey
The key type for options.
Public classCrypterOptions
Stores options for the crypt operation.
Public classCrypterProperty
Properties inherent to particular crypt algorithms.
Public classExtendedDesCrypter
Extended DES crypt.
Public classLdapCrypter
LDAP schemes such as {SHA}.
Public classLdapCrypterOption
Options that modify the LDAP crypt operation.
Public classMD5Crypter
MD5 crypt, supported by nearly all systems. A variant supports Apache htpasswd files.
Public classPhpassCrypter
PHPass crypt. Used by WordPress. Variants support phpBB and Drupal 7+.
Public classSha256Crypter
SHA256 crypt. A reasonable choice if you cannot use Blowfish crypt for policy reasons.
Public classSha512Crypter
SHA512 crypt. A reasonable choice if you cannot use Blowfish crypt for policy reasons.
Public classShaCrypter
Base class for Sha256Crypter and Sha512Crypter.
Public classTraditionalDesCrypter
Traditional DES crypt.
Enumerations

  EnumerationDescription
Public enumerationBlowfishCrypterVariant
Variations of the Blowfish crypt algorithm. You only need concern yourself with Blowfish crypt variations if you have passwords generated pre-2011 using the C-language crypt_blowfish library or a port thereof. CryptSharp was implemented from specification and is not a port, and therefore never had the bug these variants pertain to.
Public enumerationLdapCrypterVariant
LDAP password schemes.
Public enumerationMD5CrypterVariant
Modified versions of the MD5 crypt algorithm.
Public enumerationPhpassCrypterVariant
Modified versions of the PHPass crypt algorithm.