MCPcopy Create free account
hub / github.com/qilingframework/qiling / __hex_digit

Function __hex_digit

examples/hello_arm_uboot.py:46–49  ·  view source on GitHub ↗
(ch: int)

Source from the content-addressed store, hash-verified

44 password_raw = ql.mem.read(ptr1, size)
45
46 def __hex_digit(ch: int) -> str:
47 off = ord('0') if ch in range(10) else ord('a') - 10
48
49 return chr(ch + off)
50
51 # should be: "013f1f"
52 password = "".join(__hex_digit(ch) for ch in password_raw)

Callers 1

get_passwordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected