WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Core32_SecretStream_State::getNonce() public WP 1.0

{} It's a method of the class: ParagonIE_Sodium_Core32_SecretStream_State{}

No Hooks.

Return

String.

Usage

$ParagonIE_Sodium_Core32_SecretStream_State = new ParagonIE_Sodium_Core32_SecretStream_State();
$ParagonIE_Sodium_Core32_SecretStream_State->getNonce();

Code of ParagonIE_Sodium_Core32_SecretStream_State::getNonce() WP 5.8.2

public function getNonce()
{
    if (!is_string($this->nonce)) {
        $this->nonce = str_repeat("\0", 12);
    }
    if (ParagonIE_Sodium_Core32_Util::strlen($this->nonce) !== 12) {
        $this->nonce = str_pad($this->nonce, 12, "\0", STR_PAD_RIGHT);
    }
    return $this->nonce;
}