/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Contracts/Encryption/Encrypter.php
49 строк
1 KB
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\Encryption; interface Encrypter { /** * Encrypt the given value. * * @param mixed $value * @param bool $serialize * @return string * * @throws \Illuminate\Contracts\Encryption\EncryptException */ public function encrypt(#[\SensitiveParameter] $value, $serialize = true); /** * Decrypt the given value. * * @param string $payload * @param bool $unserialize * @return mixed * * @throws \Illuminate\Contracts\Encryption\DecryptException */ public function decrypt($payload, $unserialize = true); /** * Get the encryption key that the encrypter is currently using. * * @return string */ public function getKey(); /** * Get the current encryption key and all previous encryption keys. * * @return array */ public function getAllKeys(); /** * Get the previous encryption keys. * * @return array */ public function getPreviousKeys(); }