CryptSharp Namespace | CryptSharp |
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
Class | Description | |
---|---|---|
BlowfishCrypter |
Blowfish crypt, sometimes called BCrypt. A very good choice.
|
|
Crypter |
Crypts and verifies passwords. The main class for most uses of this library.
|
|
CrypterEnvironment |
Lets you customize the list of crypt algorithms your program will accept.
|
|
CrypterOption |
Options that modify the crypt operation.
|
|
CrypterOptionKey |
The key type for options.
|
|
CrypterOptions |
Stores options for the crypt operation.
|
|
CrypterProperty |
Properties inherent to particular crypt algorithms.
|
|
ExtendedDesCrypter |
Extended DES crypt.
|
|
LdapCrypter |
LDAP schemes such as {SHA}.
|
|
LdapCrypterOption |
Options that modify the LDAP crypt operation.
|
|
MD5Crypter |
MD5 crypt, supported by nearly all systems. A variant supports Apache htpasswd files.
|
|
PhpassCrypter |
PHPass crypt. Used by WordPress. Variants support phpBB and Drupal 7+.
|
|
Sha256Crypter |
SHA256 crypt. A reasonable choice if you cannot use Blowfish crypt for policy reasons.
|
|
Sha512Crypter |
SHA512 crypt. A reasonable choice if you cannot use Blowfish crypt for policy reasons.
|
|
ShaCrypter |
Base class for Sha256Crypter and Sha512Crypter.
|
|
TraditionalDesCrypter |
Traditional DES crypt.
|
Enumerations
Enumeration | Description | |
---|---|---|
BlowfishCrypterVariant |
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.
|
|
LdapCrypterVariant |
LDAP password schemes.
|
|
MD5CrypterVariant |
Modified versions of the MD5 crypt algorithm.
|
|
PhpassCrypterVariant |
Modified versions of the PHPass crypt algorithm.
|