MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / _lscmp

Function _lscmp

thirdparty/bottle/bottle.py:3451–3455  ·  view source on GitHub ↗

Compares two strings in a cryptographically safe way: Runtime is not affected by length of common prefix.

(a, b)

Source from the content-addressed store, hash-verified

3449
3450
3451def _lscmp(a, b):
3452 """ Compares two strings in a cryptographically safe way:
3453 Runtime is not affected by length of common prefix. """
3454 return not sum(0 if x == y else 1
3455 for x, y in zip(a, b)) and len(a) == len(b)
3456
3457
3458def cookie_encode(data, key, digestmod=None):

Callers 2

get_cookieMethod · 0.85
cookie_decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…