galaeth-draft/Galaeth.Services/Configuration/PwdHashConfiguration.cs

34 lines
820 B
C#
Raw Permalink Normal View History

2024-11-17 10:31:01 +01:00
namespace Galaeth.Services.Configuration;
/// <summary>
/// How the password should be hashed.
/// Refer to https://argon2-cffi.readthedocs.io/en/stable/argon2.html.
/// </summary>
public class PwdHashConfiguration
{
/// <summary>
/// Number of threads to use. (Higher the better).
/// </summary>
public int DegreeOfParallelism { get; set; }
/// <summary>
/// Number of iterations over the memory.
/// </summary>
public int NumberOfIterations { get; set; }
/// <summary>
/// Memory used by the algorithm.
/// </summary>
public int MemoryToUseKb { get; set; }
/// <summary>
/// Salt size in bytes.
/// </summary>
public int SaltSize { get; set; }
/// <summary>
/// Hash size in bytes.
/// </summary>
public int HashSize { get; set; }
}