Skip to content

Commit

Permalink
Updated dependencies and made methods virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbrady91 committed Apr 16, 2019
1 parent 6741320 commit de775bf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ public Argon2PasswordHasher(IOptions<Argon2PasswordHasherOptions> optionsAccesso
options = optionsAccessor?.Value ?? new Argon2PasswordHasherOptions();
}

public string HashPassword(TUser user, string password)
public virtual string HashPassword(TUser user, string password)
{
if (password == null) throw new ArgumentNullException(nameof(password));

return PasswordHash.ArgonHashString(password, ParseStrength());
}

public PasswordVerificationResult VerifyHashedPassword(TUser user, string hashedPassword, string providedPassword)
public virtual PasswordVerificationResult VerifyHashedPassword(TUser user, string hashedPassword, string providedPassword)
{
if (hashedPassword == null) throw new ArgumentNullException(nameof(hashedPassword));
if (providedPassword == null) throw new ArgumentNullException(nameof(providedPassword));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>ScottBrady91.AspNetCore.Identity.Argon2PasswordHasher</AssemblyName>
<PackageId>ScottBrady91.AspNetCore.Identity.Argon2PasswordHasher</PackageId>
<PackageVersion>1.0.0</PackageVersion>
<PackageVersion>1.1.0</PackageVersion>
<Authors>Scott Brady</Authors>
<Description>ASP.NET Core Identity IPasswordHasher implementation using Argon2</Description>
<Copyright>Copyright (c) 2017 Scott Brady</Copyright>
<PackageTags>aspnetcore;identity;Argon2;password;hashing;hash;security</PackageTags>
<PackageIconUrl>https://www.scottbrady91.com/img/logos/scottbrady91.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/scottbrady91/ScottBrady91.AspNetCore.Identity.Argon2PasswordHasher</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/scottbrady91/ScottBrady91.AspNetCore.Identity.Argon2PasswordHasher/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReleaseNotes>Updated libsodium and ASP.NET Identity dependencies. Made methods virtual.</PackageReleaseNotes>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="libsodium" Version="1.0.15" />
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="2.0.0" />
<PackageReference Include="Sodium.Core" Version="1.0.5" />
<PackageReference Include="libsodium" Version="1.0.17" />
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="2.1.6" />
<PackageReference Include="Sodium.Core" Version="1.2.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFrameworks>netcoreapp2.0;netcoreapp2.1;netcoreapp2.2</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="4.19.4" />
<PackageReference Include="xunit" Version="2.3.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.0" />
<PackageReference Include="FluentAssertions" Version="5.6.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit de775bf

Please sign in to comment.