def parse_auth(header):
    try:
        method, data = header.split(None, 1)
        if method.lower() == 'basic':
            user, pwd = touni(base64.b64decode(tob(data))).split(':',1)
            return user, pwd
    except (KeyError, ValueError):
        return None
Return next counter value, encoded into YSM_BLOCK_SIZE.
dataset/ETHPy150Open adampresley/bottlepy-bootstrap/app/bottle.py/parse_auth--crossover with--dataset/ETHPy150Open Yubico/python-pyhsm/pyhsm/soft_hsm.py/_ctr_counter.next