См. определение в файле cipher.php строка 10
◆ __construct()
__construct |
( |
| $cipherAlgorithm = 'aes-256-ctr', |
|
|
| $hashAlgorithm = 'sha256', |
|
|
| $calculateHash = true ) |
Cipher constructor. Aes-256-ctr and sha256 are the best currently known methods.
- Аргументы
-
string | $cipherAlgorithm | |
string | $hashAlgorithm | |
bool | $calculateHash | |
- Исключения
-
См. определение в файле cipher.php строка 24
◆ decrypt()
Decrypts the data by key (symmetric cipher).
- Аргументы
-
string | $data | Binary data |
string | $key | |
- Возвращает
- string
- Исключения
-
См. определение в файле cipher.php строка 91
◆ encrypt()
Encrypts the data by key (symmetric cipher).
- Аргументы
-
- Возвращает
- string Binary data.
- Исключения
-
См. определение в файле cipher.php строка 52
◆ $calculateHash
◆ $cipherAlgorithm
◆ $hashAlgorithm
◆ $ivLength
Объявления и описания членов класса находятся в файле: