From 6055b72d0eaabdf164857255640e1808b433fed9 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Sun, 21 Feb 2021 13:33:21 +0100 Subject: UPGRADING: Add note about xxHash secret and fix a typo [ci skip] Signed-off-by: Anatol Belski --- UPGRADING | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'UPGRADING') diff --git a/UPGRADING b/UPGRADING index 0bc8f81808..eb01058a5a 100644 --- a/UPGRADING +++ b/UPGRADING @@ -166,6 +166,16 @@ PHP 8.1 UPGRADE NOTES echo $h, "\n"; ``` + Secret usage is supported through passing the `secret` key in the `$options` array, too: + + ```php + $h = hash("xxh3", $data, options: ["secret" => "at least 136 bytes long secret here"]); + echo $h, "\n"; + ``` + + Note, that the quality of the custom secret is crucial for the quality of the resulting hash. It is + highly recommended for the secret to use the best possible entropy. + - PDO SQLite: . SQLite's "file:" DSN syntax is now supported, which allows specifying additional flags. This feature is not available if open_basedir is set. -- cgit v1.2.1