service/models/Credential.php
/**
     * Returns encrypted using encryptKey data
     *
     * @param  string $data
     * @return string
     */
Returns encrypted using encryptKey data
@param  string $data
@return string
Returns encrypted using encryptKey data @param string $data @return string
private function encrypt($data)
    {
        $key = Yii::$app->service->getParam('encryptKey');
        return utf8_encode(Yii::$app->security->encryptByKey($data, $key));
    }
private function encrypt ( $ data ) { $ key = Yii :: $ app -> service -> getParam ( 'encryptKey' ) ; return utf8_encode ( Yii :: $ app -> security -> encryptByKey ( $ data , $ key ) ) ; }
Returns encrypted using encryptKey data
 @param  string $data
 @return string
Returns encrypted using encryptKey data @param string $data @return string