MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / decrypter

Function decrypter

tools/python-3.11.9-amd64/Lib/zipfile.py:618–627  ·  view source on GitHub ↗

Decrypt a bytes object.

(data)

Source from the content-addressed store, hash-verified

616 update_keys(p)
617
618 def decrypter(data):
619 """Decrypt a bytes object."""
620 result = bytearray()
621 append = result.append
622 for c in data:
623 k = key2 | 2
624 c ^= ((k * (k^1)) >> 8) & 0xFF
625 update_keys(c)
626 append(c)
627 return bytes(result)
628
629 return decrypter
630

Callers

nothing calls this directly

Calls 2

update_keysFunction · 0.85
appendClass · 0.50

Tested by

no test coverage detected