3 ms·
> return actual == expected Usually you'd want to use a method which prevent timing attacks for this check. Even php provides hash_equals for this usecase.
by arkh 1y ago
> return actual == expected
Usually you'd want to use a method which prevent timing attacks for this check. Even php provides hash_equals for this usecase.