A utility library for BCrypt hashing and verification
$ dotnet add package Soenneker.Hashing.BCrypt
Soenneker.Hashing.BCryptworkFactor for extra security.dotnet add package Soenneker.Hashing.BCrypt
string hash = BCryptUtil.Hash("MyPassword");
bool isValid = BCryptUtil.Verify("MyPassword", hash);
string hash = BCryptUtil.Hash("MyPassword", workFactor: 12);