Horde_Token_Base::_decode PHP Method

_decode() private method

Decode a token into the prefixed nonce and the hash.
private _decode ( string $token ) : array
$token string The token to be decomposed.
return array An array of two elements: The nonce and the hash.
    private function _decode($token)
    {
        $b = Horde_Url::uriB64Decode($token);
        return array(substr($b, 0, 6), substr($b, 6));
    }