/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Contracts/Hashing/Hasher.php
42 строки
992 B
Philip Iezzi (Pipo)
[11.x] Mark sensitive params with `SensitiveParameter` attribute (#51940)
28 июн 2024, 23:15
Не верифицирован
28 июн 2024, 23:15
7b78fd3
Код
Авторство
О чём код?
<?php namespace Illuminate\Contracts\Hashing; interface Hasher { /** * Get information about the given hashed value. * * @param string $hashedValue * @return array */ public function info($hashedValue); /** * Hash the given value. * * @param string $value * @param array $options * @return string */ public function make(#[\SensitiveParameter] $value, array $options = []); /** * 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 = []); /** * Check if the given hash has been hashed using the given options. * * @param string $hashedValue * @param array $options * @return bool */ public function needsRehash($hashedValue, array $options = []); }