diff --git a/samples/DynamicUUID/decode.php b/samples/DynamicUUID/decode.php index 0116442c..4828f3aa 100644 --- a/samples/DynamicUUID/decode.php +++ b/samples/DynamicUUID/decode.php @@ -1,7 +1,7 @@ $serviceId, 'reference' => $reference @@ -115,7 +126,7 @@ public static function validate($uuid, $secret) $uuidData = substr($uuidData, 8); $hash = hash_hmac('sha256', $uuidData, $secret); - $checksum = "sl" . substr($hash, 0, 6); + $checksum = "b" . substr($hash, 0, 7); return $checksum == substr($uuid, 0, 8); }