CodeQL Scan #157
Annotations
10 warnings
Analyze (csharp):
src/BCrypt.Net/BCryptExtendedV3.cs#L36
Invalid type for parameter workFactor in XML comment cref attribute: 'HashPassword(string, string, workFactor, HashType)'
|
Analyze (csharp):
src/BCrypt.Net/BCryptExtendedV3.cs#L36
XML comment has cref attribute 'HashPassword(string, string, workFactor, HashType)' that could not be resolved
|
Analyze (csharp):
src/BCrypt.Net/BCrypt.cs#L128
The behavior of 'Convert.ToInt16(string)' could vary based on the current user's locale settings. Replace this call in 'BCrypt.ValidateAndUpgradeHash(string, string, string,
|
Analyze (csharp):
src/BCrypt.Net/BCrypt.cs#L89
Use 'ArgumentNullException.ThrowIfNull' instead of explicitly throwing a new exception instance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1510)
|
Analyze (csharp):
src/BCrypt.Net/HashParser.cs#L82
The behavior of 'string.StartsWith(string)' could vary based on the current user's locale settings. Replace this call in 'BCryptNet.HashParser.IsValidHash(string, out BCryptNet.HashParser.HashFormatDescriptor)' with a call to 'string.StartsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310)
|
Analyze (csharp):
src/BCrypt.Net/HashParser.cs#L70
Use 'ArgumentNullException.ThrowIfNull' instead of explicitly throwing a new exception instance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1510)
|
Analyze (csharp):
src/BCrypt.Net/BCryptBase.cs#L273
The behavior of 'Convert.ToInt16(string)' could vary based on the current user's locale settings. Replace this call in 'BCryptCore.CreatePasswordHash(string, string,
|
Analyze (csharp):
src/BCrypt.Net/BCryptBase.cs#L227
Use 'ArgumentNullException.ThrowIfNull' instead of explicitly throwing a new exception instance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1510)
|
Analyze (csharp):
src/BCrypt.Net/BCryptExtendedV2.cs#L61
Prefer static 'System.Security.Cryptography.SHA256.HashData' method over 'ComputeHash' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1850)
|
Analyze (csharp):
src/BCrypt.Net/BCryptExtendedV2.cs#L65
Prefer static 'System.Security.Cryptography.SHA384.HashData' method over 'ComputeHash' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1850)
|