PHP Класс ParagonIE\Halite\HiddenString
The purpose of this class is to encapsulate strings and hide their contents
from stack traces should an unhandled exception occur in a program that uses
Halite.
The only things that should be protected:
- Passwords
- Plaintext (before encryption)
- Plaintext (after decryption)
This library makes heavy use of return-type declarations,
which are a PHP 7 only feature. Read more about them here:
Показать файл
Открыть проект
Примеры использования класса
Защищенные свойства (Protected)
Открытые методы
Описание методов
__construct()
публичный Метод
HiddenString constructor.
__debugInfo()
публичный Метод
Hide its internal state from var_dump()
__destruct()
публичный Метод
Wipe it from memory after it's been used.
__sleep()
публичный Метод
__toString()
публичный Метод
Optionally, it can return an empty string.
getString()
публичный Метод
Explicit invocation -- get the raw string value
Описание свойств
$disallowInline защищенное свойство
Disallow the contents from being accessed via __toString()?
protected bool $disallowInline |
Результат |
boolean |
|
$disallowSerialization защищенное свойство
Disallow the contents from being accessed via __sleep()?
protected bool $disallowSerialization |
Результат |
boolean |
|
$internalStringValue защищенное свойство
protected string $internalStringValue |
Результат |
string |
|