PHPWales 2020 - June 3rd to June 4th

sodium_memcmp

(PHP 7 >= 7.2.0)

sodium_memcmpTest for equality in constant-time

Descripción

sodium_memcmp ( string $buf1 , string $buf2 ) : int

Advertencia

Esta función no está documentada actualmente, solamente se encuentra disponible la lista de parámetros.

Parámetros

buf1

buf2

Valores devueltos

add a note add a note

User Contributed Notes 1 note

up
0
divinity76 at gmail dot com
3 months ago
seems to me that this function does the same as the hash_equals() function. hash_equals() has nothing to do with hashes really, it is just a constant-time string equality check function, apparently like sodium_memcmp()
To Top