Add lazy initialization for shared PBKDF2 algorithm instance
This commit is contained in:
parent
f03f73afc7
commit
a4faf1d4cd
1 changed files with 3 additions and 0 deletions
|
|
@ -9,6 +9,9 @@ public class Password
|
|||
{
|
||||
#region Members
|
||||
|
||||
/// <summary>
|
||||
/// Lazily initializes the shared preconfigured PBKDF2 algorithm instance.
|
||||
/// </summary>
|
||||
private static readonly Lazy<Pbkdf2Algorithm> pbkdf2Algorithm = new(() => new Pbkdf2Algorithm());
|
||||
|
||||
#endregion
|
||||
|
|
|
|||
Loading…
Reference in a new issue