You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: OutSystems.NetChecksumUtils/INetChecksumUtils.cs
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@ void ComputeChecksum(
22
22
stringtextToHash,
23
23
[OSParameterAttribute(Description="Output parameter that receives the computed checksum as an uppercase hexadecimal string.")]
24
24
outstringchecksumText,
25
+
[OSParameterAttribute(Description="Output parameter that receives the computed checksum as a Base64 string.")]
26
+
outstringchecksumBase64,
25
27
[OSParameterAttribute(Description="Output parameter that receives the duration of the hashing operation in ticks.")]
26
28
outlongoperationDuration
27
29
);
@@ -35,7 +37,7 @@ void VerifyChecksum(
35
37
stringalgorithm,
36
38
[OSParameterAttribute(Description="The name of the hashing algorithm to use. Supported values (case-insensitive): \"SHA256\", \"SHA-256\", \"SHA512\", \"SHA-512\", \"MD5\", \"SHA3-256\", \"SHA3_256\".")]
37
39
stringtext,
38
-
[OSParameterAttribute(Description="The text to compute the checksum for. The text is encoded as UTF-8 before hashing.")]
40
+
[OSParameterAttribute(Description="The text to compute the checksum for uppercase hex or base64). The text is encoded as UTF-8 before hashing.")]
39
41
stringexistingChecksum,
40
42
[OSParameterAttribute(Description="Output parameter that receives the computed checksum as an uppercase hexadecimal string.")]
/// <param name="text">The input text to hash (UTF-8 encoded before hashing).</param>
90
-
/// <param name="existingChecksum">The checksum to compare against (hex string).</param>
91
+
/// <param name="existingChecksum">The checksum to compare against (base64 or hex string).</param>
91
92
/// <param name="isValid">Output parameter set to true when the computed checksum equals <paramref name="existingChecksum"/> (case-insensitive).</param>
92
93
/// <param name="operationDuration">Output parameter that receives the duration, in ticks, of the entire verification operation (includes hashing + comparison).</param>
93
94
/// <exception cref="ArgumentNullException">Thrown when <paramref name="algorithm"/>, <paramref name="text"/> or <paramref name="existingChecksum"/> is null.</exception>
@@ -109,8 +110,11 @@ public void VerifyChecksum(
109
110
110
111
// 3. Measure the whole operation: hashing + comparison
0 commit comments