Back to SodiumCipher class

Method setNonce

public void
setNonce
(mixed $nonce)
Set the nonce to use for encrypting/decrypting messages
Parameters
  • string $nonce The message nonce
Returns
  • void
Since
  • 3.8.0
Class: SodiumCipher
Project: Joomla

Method setNonce - Source code

/**
 * Set the nonce to use for encrypting/decrypting messages
 *
 * @param   string  $nonce  The message nonce
 *
 * @return  void
 *
 * @since   3.8.0
 */
public function setNonce($nonce)
{
    $this->nonce = $nonce;
}