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

Function generate_key

examples/petya_8086_crack.py:21–22  ·  view source on GitHub ↗
(key: bytes)

Source from the content-addressed store, hash-verified

19accepted_chars = "ABCDEFG123456789abcdefghijkmnopqrstuvwx"
20
21def generate_key(key: bytes):
22 return b"".join([struct.pack("BB", (k + 0x7A)%256, k*2%256) for k in key])
23
24def stop(ql: Qiling, addr, data):
25 ql.emu_stop()

Callers 1

one_roundFunction · 0.85

Calls 1

packMethod · 0.45

Tested by

no test coverage detected