Check out example codes for "BCrypt c#". It will help you in understanding the concepts better.
Code Example 1
// Como criar uma chave para uma string criptografada
using BCrypt.Net;
public class Hashing
{
private static string GetRandomSalt()
{
return BCrypt.GenerateSalt(12);
}
public static string HashPassword(string password)
{
return BCrypt.HashPassword(password, GetRandomSalt());
}
public static bool ValidatePassword(string password, string correctHash)
{
return BCrypt.Verify(password, correctHash);
}
}
Code Example 2
public static string hashPassword(string plainText)
{
return BCrypt.Net.BCrypt.HashPassword(plainText, workFactor);
}
Learn ReactJs, React Native from akashmittal.com