Function __global->get_site_salt

Definitions

sources/crypt.php

  • Gets or cryptographically generates the site-wide salt.This should be used to salt sensitive site data or to generate verification hashes. The site salt is enforced to at least 32 characters and will be re-generated if it is less than that.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Returns

  • The salt
  • Type: ID_TEXT
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Gets or cryptographically generates the site-wide salt.This should be used to salt sensitive site data or to generate verification hashes. The site salt is enforced to at least 32 characters and will be re-generated if it is less than that.
 *
 * @return ID_TEXT The salt
 */

function get_site_salt() : string