PrivateBin\Model\Paste::getDeleteToken PHP Method

getDeleteToken() public method

The token is the hmac of the pastes ID signed with the server salt. The paste can be deleted by calling: http://example.com/privatebin/?pasteid=&deletetoken=
public getDeleteToken ( ) : string
return string
    public function getDeleteToken()
    {
        if (!property_exists($this->_data->meta, 'salt')) {
            $this->get();
        }
        return hash_hmac($this->_conf->getKey('zerobincompatibility') ? 'sha1' : 'sha256', $this->getId(), $this->_data->meta->salt);
    }