encrypt() protected method
Encrypts data. See also decrypt().
protected string encrypt ( $data, $passwordBased, $secret, $info )$data string
Data to be encrypted $passwordBased boolean
Set true to use password-based key derivation $secret string
The encryption password or key $info string
Context/application specific information, e.g. a user ID See RFC 5869 Section 3.2 for more details. return string
The encrypted data throws yii\base\InvalidConfigException
on OpenSSL not loade