CryptSharpOfficial 2.1.0

dotnet add package CryptSharpOfficial --version 2.1.0                
NuGet\Install-Package CryptSharpOfficial -Version 2.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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                
#r "nuget: CryptSharpOfficial, 2.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CryptSharpOfficial as a Cake Addin
#addin nuget:?package=CryptSharpOfficial&version=2.1.0

// Install CryptSharpOfficial as a Cake Tool
#tool nuget:?package=CryptSharpOfficial&version=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.

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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


Event Sourcing, CQRS and DDD framework for modern C#/.NET applications. ASP.NET platform integration package (user context, authentication using Identity, etc.).


Client library for the Enzoic API


IPasswordHasher implementation for Asp.Net Identity


PasswordPing client library for .NET. Wraps the PasswordPing API. See to learn more.

GitHub repositories (1)

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

Repository Stars
Next-gen crypto currency mining pool software
Version Downloads Last updated
2.1.0 1,016,943 12/2/2014
2.0.0 130,742 5/8/2013

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!