MCPcopy Index your code
hub / github.com/python/cpython / decrypter

Function decrypter

Lib/zipfile/__init__.py:737–746  ·  view source on GitHub ↗

Decrypt a bytes object.

(data)

Source from the content-addressed store, hash-verified

735 update_keys(p)
736
737 def decrypter(data):
738 """Decrypt a bytes object."""
739 result = bytearray()
740 append = result.append
741 for c in data:
742 k = key2 | 2
743 c ^= ((k * (k^1)) >> 8) & 0xFF
744 update_keys(c)
745 append(c)
746 return bytes(result)
747
748 return decrypter
749

Callers

nothing calls this directly

Calls 1

update_keysFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…