PHP Classes

File: backend/dotnet/Services/BcryptPasswordHasher.cs

Recommend this page to a friend!
  Packages of Everton C B Junior   Igreja Aberta   backend/dotnet/Services/BcryptPasswordHasher.cs   Download  
File: backend/dotnet/Services/BcryptPasswordHasher.cs
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Igreja Aberta
Church activity management application
Author: By
Last change:
Date: 12 days ago
Size: 495 bytes
 

Contents

Class file image Download
namespace Jdb.Api.Services { public class BcryptPasswordHasher : IPasswordHasher { public string Hash(string password) { return BCrypt.Net.BCrypt.HashPassword(password); } public bool Verify(string password, string passwordHash) { if (string.IsNullOrWhiteSpace(passwordHash)) { return false; } return BCrypt.Net.BCrypt.Verify(password, passwordHash); } } }