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

Function isHexEncodedString

lib/core/common.py:2333–2343  ·  view source on GitHub ↗

Checks if the provided string is hex encoded >>> isHexEncodedString('DEADBEEF') True >>> isHexEncodedString('test') False

(subject)

Source from the content-addressed store, hash-verified

2331 return filepath.replace('\\', '/') if filepath else filepath
2332
2333def isHexEncodedString(subject):
2334 """
2335 Checks if the provided string is hex encoded
2336
2337 >>> isHexEncodedString('DEADBEEF')
2338 True
2339 >>> isHexEncodedString('test')
2340 False
2341 """
2342
2343 return re.match(r"\A[0-9a-fA-Fx]+\Z", subject) is not None
2344
2345@cachedmethod
2346def getConsoleWidth(default=80):

Callers 1

parsePasswordHashFunction · 0.85

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…