A .NET port of the bcrypt password hashing algorithm with adjustable work factor for secure password storage.
BCrypt.Net is a .NET library that implements the bcrypt password hashing algorithm in C#. It provides secure password storage by using a computationally expensive hashing process with an adjustable work factor, making it resistant to brute-force attacks. The library is a direct port of jBCrypt, ensuring compatibility and reliability for .NET applications.
.NET developers and software engineers who need to securely hash and verify passwords in applications such as web APIs, authentication systems, and enterprise software.
Developers choose BCrypt.Net because it offers a battle-tested, future-proof password hashing solution with automatic salt generation and adjustable cost, eliminating the need to manually manage cryptographic complexities while maintaining high security standards.
BCrypt.Net - Bringing updates to the original bcrypt package
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Allows increasing CPU cost over time to resist brute-force attacks, embedding the factor in hashes for future-proofing, as described in the README's philosophy on countering Moore's Law.
Generates secure random salts by default, enhancing security without manual effort, with the README strongly advising against supplying custom salts for most use cases.
A direct port of jBCrypt with unit tests ensuring consistency, providing reliability for .NET developers migrating from other bcrypt implementations.
Hashes embed the work factor, ensuring compatibility across versions without breaking existing stored passwords, as highlighted in the README's details section.
The README notes V5 is being prepared for release, which may introduce breaking changes and require code updates, potentially disrupting production environments.
Only implements bcrypt, lacking newer alternatives like Argon2 or scrypt that might offer better resistance to specific attacks such as GPU-based cracking.
Bcrypt's deliberate slowness, while a security strength, can bottleneck high-throughput applications like APIs handling massive authentication requests, impacting response times.