From 1e918584d1d11525ef7d13fef47fb5a9b84bd1b1 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 4 Jun 2020 00:40:19 +0800 Subject: chore(back): Fix some warnings. --- Timeline/Services/PasswordService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Timeline/Services/PasswordService.cs') diff --git a/Timeline/Services/PasswordService.cs b/Timeline/Services/PasswordService.cs index e04a861b..8114a520 100644 --- a/Timeline/Services/PasswordService.cs +++ b/Timeline/Services/PasswordService.cs @@ -110,7 +110,7 @@ namespace Timeline.Services return Convert.ToBase64String(HashPasswordV3(password, _rng)); } - private byte[] HashPasswordV3(string password, RandomNumberGenerator rng) + private static byte[] HashPasswordV3(string password, RandomNumberGenerator rng) { return HashPasswordV3(password, rng, prf: KeyDerivationPrf.HMACSHA256, @@ -166,7 +166,7 @@ namespace Timeline.Services }; } - private bool VerifyHashedPasswordV3(byte[] hashedPassword, string password, string hashedPasswordString) + private static bool VerifyHashedPasswordV3(byte[] hashedPassword, string password, string hashedPasswordString) { try { -- cgit v1.2.3