tokens->encryptValue($unencryptedData); } protected function decrypt($encryptedData): string { return Yii::$app->tokens->decryptValue($encryptedData); } }