Here is a hint to the answer. You can follow the link for further detailed information.
string salt = BCryptHelper.GenerateSalt(6);
var passwordHash= BCryptHelper.HashPassword("Tom123", salt);
bool value = BCryptHelper.CheckPassword("Tom123", passwordHash);