diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 9a6938ed64..5696852f52 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -9142,7 +9142,8 @@ function wp_fast_hash( #[\SensitiveParameter] string $message ): string { - return '$generic$' . sodium_bin2hex( sodium_crypto_generichash( $message ) ); + $hashed = sodium_crypto_generichash( $message, 'wp_fast_hash_6.8+', 30 ); + return '$generic$' . sodium_bin2base64( $hashed, SODIUM_BASE64_VARIANT_URLSAFE_NO_PADDING ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 1b06df4154..de97dde903 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59903'; +$wp_version = '6.8-alpha-59904'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.