ParagonIE_Sodium_Core_SecretStream_State::getNonce() public WP 1.0
{} It's a method of the class: ParagonIE_Sodium_Core_SecretStream_State{}
No Hooks.
Return
String
. Null. Nothing.
Usage
$ParagonIE_Sodium_Core_SecretStream_State = new ParagonIE_Sodium_Core_SecretStream_State(); $ParagonIE_Sodium_Core_SecretStream_State->getNonce();
Code of ParagonIE_Sodium_Core_SecretStream_State::getNonce() ParagonIE Sodium Core SecretStream State::getNonce WP 5.7
public function getNonce()
{
if (!is_string($this->nonce)) {
$this->nonce = str_repeat("\0", 12);
}
if (ParagonIE_Sodium_Core_Util::strlen($this->nonce) !== 12) {
$this->nonce = str_pad($this->nonce, 12, "\0", STR_PAD_RIGHT);
}
return $this->nonce;
}