using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
///
/// Define how to manage passwords.
///
public interface IPasswordManager
{
///
/// Hash a plain text password.
///
/// The plain password to hash.
/// The hashed password.
public string HashPassword(string password);
///
/// Verify a plain text password with a hashed one.
///
/// The hashed password.
/// The plain text password.
/// True is the password is correct, false otherwise.
public bool VerifyPassword(string hashedPassword,string password);
}
}