MCPcopy Create free account
hub / github.com/UndCover/PyramidStore / parseCBC

Method parseCBC

plugin/py_cyys.py:178–184  ·  view source on GitHub ↗
(self, enc, key, iv)

Source from the content-addressed store, hash-verified

176 }
177 return result
178 def parseCBC(self, enc, key, iv):
179 keyBytes = key.encode("utf-8")
180 ivBytes = iv.encode("utf-8")
181 cipher = AES.new(keyBytes, AES.MODE_CBC, ivBytes)
182 msg = cipher.decrypt(enc)
183 paddingLen = msg[len(msg) - 1]
184 return msg[0:-paddingLen]
185
186 def playerContent(self, flag, id, vipFlags):
187 result = {}

Callers 1

playerContentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected