sodium_memcmp()
(PHP 7 >= 7.2.0)
Test for equality in constant-time
说明
sodium_memcmp(string $buf1,string $buf2): int
Warning本函数还未编写文档,仅有参数列表。
参数
- $buf1
- $buf2
返回值
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()