ParagonIE\Halite\Key::__destruct PHP Method

__destruct() public method

Make sure you wipe the key from memory on destruction
public __destruct ( )
    public function __destruct()
    {
        if (!$this->isPublicKey) {
            \Sodium\memzero($this->keyMaterial);
            $this->keyMaterial = null;
        }
    }