<PackageReference Include="BouncyCastle.Cryptography" Version="2.6.2" />

Org.BouncyCastle.Crypto.Generators.BCrypt

public sealed class BCrypt
namespace Org.BouncyCastle.Crypto.Generators { public sealed class BCrypt { public static byte[] PasswordToByteArray(char[] password); public static byte[] Generate(byte[] password, byte[] salt, int cost); } }