29 lines
756 B
C#
29 lines
756 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace OFBButte.Infrastructure.Hashing
|
|
{
|
|
// <summary>
|
|
/// Specifies the results for password verification.
|
|
/// </summary>
|
|
public enum PasswordVerificationResult
|
|
{
|
|
/// <summary>
|
|
/// Indicates password verification failed.
|
|
/// </summary>
|
|
Failed = 0,
|
|
|
|
/// <summary>
|
|
/// Indicates password verification was successful.
|
|
/// </summary>
|
|
Success = 1,
|
|
|
|
/// <summary>
|
|
/// Indicates password verification was successful however the password was encoded using a deprecated algorithm
|
|
/// and should be rehashed and updated.
|
|
/// </summary>
|
|
SuccessRehashNeeded = 2
|
|
}
|
|
}
|