Skip to content

Commit

Permalink
adding overload to argon2id
Browse files Browse the repository at this point in the history
  • Loading branch information
DavitMatosyan authored and DavitMatosyan committed Nov 1, 2023
1 parent 4bcee44 commit 1b0b6f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Pandatech.Crypto/HostBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,12 @@ public static void AddPandatechCryptoArgon2Id(this IServiceCollection services,
services.AddSingleton(options);
services.AddSingleton<Argon2Id>();
}

public static void AddPandatechCryptoArgon2Id(this IServiceCollection services)
{
var options = new Argon2IdOptions();
services.AddSingleton(options);
services.AddSingleton<Argon2Id>();

}
}
2 changes: 1 addition & 1 deletion Pandatech.Crypto/Pandatech.Crypto.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>2.1.2</Version>
<Version>2.1.3</Version>
<Title>Pandatech.Crypto</Title>
<Authors>Pandatech</Authors>
<PackageIcon>pandatech.png</PackageIcon>
Expand Down

0 comments on commit 1b0b6f9

Please sign in to comment.