using System.Security.Cryptography;
public static void Main()
string result = ComputeSha1Hash("B7E84624B45D8D124456E78D2C33026487c3ac0c1337473c2f6a41f4c612c7d4");
result = BCrypt.Net.BCrypt.HashPassword(result, workFactor: 10);
Console.WriteLine(result);
private static string ComputeSha1Hash(string input)
using (SHA1 sha1 = SHA1.Create())
byte[] inputBytes = Encoding.UTF8.GetBytes(input);
byte[] hashBytes = sha1.ComputeHash(inputBytes);
StringBuilder sb = new StringBuilder();
foreach (var b in hashBytes)
sb.Append(b.ToString("x2"));