def _lscmp(a, b):
    return not sum(0 if x==y else 1 for x, y in zip(a, b)) and len(a) == len(b)
Compares two strings in a cryptographically safe way:
dataset/ETHPy150Open adampresley/bottlepy-bootstrap/app/bottle.py/_lscmp