Function __global->encrypt_data_telemetry

Definitions

sources/telemetry.php

  • Encrypt some data for telemetry using symmetric encryption and just the software's public key.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$data string No No required parameter N/A N/A The data to encrypt

Returns

  • Map of parameters for the JSON payload
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Encrypt some data for telemetry using symmetric encryption and just the software's public key.
 *
 * @param  string $data The data to encrypt
 * @return array Map of parameters for the JSON payload
 */

function encrypt_data_telemetry(string $data) : array