diff options
author | crupest <crupest@outlook.com> | 2020-06-04 00:40:19 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-04 00:40:19 +0800 |
commit | 1e918584d1d11525ef7d13fef47fb5a9b84bd1b1 (patch) | |
tree | cc8bc62992b35397f334477b7a591993b00001b8 /Timeline/Services | |
parent | 1b9f4bfb2242589463c70b4ad2c77cfc8f79afb0 (diff) | |
download | timeline-1e918584d1d11525ef7d13fef47fb5a9b84bd1b1.tar.gz timeline-1e918584d1d11525ef7d13fef47fb5a9b84bd1b1.tar.bz2 timeline-1e918584d1d11525ef7d13fef47fb5a9b84bd1b1.zip |
chore(back): Fix some warnings.
Diffstat (limited to 'Timeline/Services')
-rw-r--r-- | Timeline/Services/PasswordService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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
{
|