<PackageReference Include="BouncyCastle.Cryptography" Version="2.8.0-beta.349" />

Org.BouncyCastle.Crypto.Generators.OpenBsdBCrypt

public class OpenBsdBCrypt
Password hashing scheme BCrypt.
public OpenBsdBCrypt()

public static bool CheckPassword(string bcryptString, char[] password)

Checks if a password corresponds to a 60 character Bcrypt String.

public static string Generate(char[] password, byte[] salt, int cost)

Creates a 60 character Bcrypt String, including version, cost factor, salt and hash, separated by '$' using version '2y'.

public static string Generate(string version, char[] password, byte[] salt, int cost)

Creates a 60 character Bcrypt String, including version, cost factor, salt and hash, separated by '$'.