(ch: int)
| 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) |