Skip to content

Commit 6d7059f

Browse files
skerbisCopilot
andauthored
Update lib/EmailObfuscator.php
Co-authored-by: Copilot <[email protected]>
1 parent 270827b commit 6d7059f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/EmailObfuscator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ private static function encryptEmailData($data, $method, $context = '') {
273273
$hash = $hash & 0xFFFFFFFF; // Keep as 32-bit unsigned integer (cross-platform)
274274
}
275275
// Convert to hex and take first 16 characters
276-
$hashHex = dechex(sprintf('%u', $hash));
276+
$hashHex = dechex($hash & 0xFFFFFFFF);
277277
$key = substr(str_repeat($hashHex, 4), 0, 16);
278278
}
279279

0 commit comments

Comments
 (0)