public encryptByKey ( string $data, string $inputKey, string $info = null ) : string | ||
$data | string | the data to encrypt |
$inputKey | string | the input to use for encryption and authentication |
$info | string | optional context and application specific information, see [[hkdf()]] |
return | string | the encrypted data |