CryptSharp modernized fork with multi-targeting support. Provides password hashing using BCrypt, SCrypt, PBKDF2, and more for .NET Framework 4.8, .NET 6.0, .NET 8.0, and .NET 10.0.
$ dotnet add package CryptSharp.ModernA modernized fork of CryptSharp with multi-targeting support for .NET Framework 4.8, .NET 6.0, .NET 8.0, and .NET 10.0.
dotnet build CryptSharp\CryptSharp.csproj -c Release
dotnet pack CryptSharp\CryptSharp.csproj -c Release
The NuGet package will be created at: CryptSharp\bin\Release\CryptSharp.Modern.2.2.0.nupkg
# Add local package source (one-time) - replace with your actual path
dotnet nuget add source "C:\path\to\CryptSharp\CryptSharp\bin\Release" --name "CryptSharp-Local"
# In your project
dotnet add package CryptSharp.Modern --version 2.2.0 --source "CryptSharp-Local"
Add to your .csproj file:
<ItemGroup>
<PackageReference Include="CryptSharp.Modern" Version="2.2.0" />
</ItemGroup>
Then create a nuget.config in your solution directory:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="CryptSharp-Local" value="C:\path\to\CryptSharp\CryptSharp\bin\Release" />
</packageSources>
</configuration>
Replace C:\path\to\CryptSharp with the actual path to this repository on your machine.
BSD-2-Clause (same as original CryptSharp)
Based on CryptSharp by James F. Bellinger
http://www.zer7.com/software/cryptsharp