CryptSharpOfficial 2.1.0

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 algorithm you want.

Install-Package CryptSharpOfficial -Version 2.1.0
dotnet add package CryptSharpOfficial --version 2.1.0
<PackageReference Include="CryptSharpOfficial" Version="2.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CryptSharpOfficial --version 2.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

2.1.0 (December 2, 2014):
 Added SHA256, SHA384, and SHA512 LDAP schemes.
 Fixed Drupal 7+ crypt.
2.0.0 (May 8, 2013):
 Documentation! The meaning of methods, no longer a mystery...
 Crypt features:
 Added support for the 2x and 2y Blowfish prefixes.
 Added LDAP schemes such as Apache htpasswd's {SHA}.
 Added MD5 crypt and the Apache htpasswd variant.
 Added PHPass crypt, as seen in WordPress. Variants for phpBB and Drupal 7+ are also included.
 Added SHA256 and SHA512 crypt, as seen in Linux.
 Added Traditional and Extended DES crypt for completeness's sake.
 CryptSharp is now feature-complete for common crypt and htpasswd methods.
 BaseEncoding performs generic binary-to-text encoding.
 Made the Pbkdf2 class easier to use.
 Optimized the SCrypt code. It is now 50% faster.
 SecureComparison implements timing-insensitive string comparison.
 I now code-sign the CryptSharp DLL so you can confirm it is unaltered.

1.2.0 (January 23, 2011):
 The SCrypt KDF is now supported as CryptSharp.Utility.SCrypt.
 Added djb's Salsa20, required by SCrypt.
1.1.1 (January 22, 2011):
 BCrypt can now use magic strings other than the default.
1.1.0 (January 21, 2011):
Added a PBKDF2 implementation that can run against arbitrary HMACs. I will use this for SCrypt support soon.
The BCrypt password length limit was needlessly short. It is now fully compatible with PHP crypt.
The demo now checks Blowfish and PBKDF2 (SHA1) against official test vectors.
The demo also checks BCrypt against 400 crypts length 0-100 randomly generated with PHP.

1.0.0 (November 7, 2010):
Initial release.

If you have any questions, comments, or run into any problems, don't hesitate to send me an e-mail at or visit the CryptSharp website at

Thanks and enjoy the library!



This package has no dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on CryptSharpOfficial:

Package Downloads
The SolairUtilities namespace contains classes usefull to interact with Solair Platform
IPasswordHasher implementation for Asp.Net Identity
Event Sourcing, CQRS and DDD framework for modern C#/.NET applications. ASP.NET platform integration package (user context, authentication using Identity, etc.).
PasswordPing client library for .NET. Wraps the PasswordPing API. See to learn more.
Enzoic client library for .NET. Wraps the Enzoic API. See to learn more.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on CryptSharpOfficial:

Repository Stars
Next-gen crypto currency mining pool software
Event Sourcing, CQRS and DDD framework for C#/.NET Core.

Version History

Version Downloads Last updated
2.1.0 416,489 12/2/2014
2.0.0 64,205 5/8/2013