/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Hashing/AbstractHasher.php
34 строки
760 B
Lucas Michot
Changes strlen comparison to 0 to direct empty string compare (#59686)
14 апр 2026, 16:54
Не верифицирован
14 апр 2026, 16:54
3eda20c
Код
Авторство
О чём код?
<?php namespace Illuminate\Hashing; abstract class AbstractHasher { /** * Get information about the given hashed value. * * @param string $hashedValue * @return array */ public function info($hashedValue) { return password_get_info($hashedValue); } /** * Check the given plain value against a hash. * * @param string $value * @param string $hashedValue * @param array $options * @return bool */ public function check(#[\SensitiveParameter] $value, $hashedValue, array $options = []) { if (is_null($hashedValue) || (string) $hashedValue === '') { return false; } return password_verify($value, $hashedValue); } }