Add lazy initialization for shared PBKDF2 algorithm instance

This commit is contained in:
Jordan Wages 2026-07-26 23:06:14 -05:00
commit a4faf1d4cd

View file

@ -9,6 +9,9 @@ public class Password
{ {
#region Members #region Members
/// <summary>
/// Lazily initializes the shared preconfigured PBKDF2 algorithm instance.
/// </summary>
private static readonly Lazy<Pbkdf2Algorithm> pbkdf2Algorithm = new(() => new Pbkdf2Algorithm()); private static readonly Lazy<Pbkdf2Algorithm> pbkdf2Algorithm = new(() => new Pbkdf2Algorithm());
#endregion #endregion