From c4f73fd999bf32d5e1d8712038a9f4b1ec6daec5 Mon Sep 17 00:00:00 2001 From: Khwezi Mngoma Date: Sun, 31 May 2026 19:38:03 +0200 Subject: [PATCH] Removed comments from function blocks --- LiteCharms.Features/Hasher/HashService.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/LiteCharms.Features/Hasher/HashService.cs b/LiteCharms.Features/Hasher/HashService.cs index 853ccb8..fc18e38 100644 --- a/LiteCharms.Features/Hasher/HashService.cs +++ b/LiteCharms.Features/Hasher/HashService.cs @@ -35,7 +35,6 @@ public sealed partial class HashService(IHashids hasher, IOptions("Validation failed: Missing signature string parameter."); - // 1. Sort the parameters alphabetically and exclude the signature parameter to prevent recursive checking var sortedFields = incomingFormData .Where(field => field.Key != "signature") .OrderBy(field => field.Key) @@ -43,19 +42,14 @@ public sealed partial class HashService(IHashids hasher, IOptions(localHashResult.Errors); - // 4. Constant-time secure text comparison to fully block timing analysis attacks bool isValid = string.Equals(localHashResult.Value, incomingSignature, StringComparison.OrdinalIgnoreCase); return Result.Ok(isValid);