MCPcopy
hub / github.com/zhayujie/CowAgent / decode

Method decode

channel/wecom_bot/wecom_bot_crypt.py:70–74  ·  view source on GitHub ↗
(self, decrypted: bytes)

Source from the content-addressed store, hash-verified

68 return text + pad * amount_to_pad
69
70 def decode(self, decrypted: bytes) -> bytes:
71 pad = decrypted[-1]
72 if pad < 1 or pad > 32:
73 pad = 0
74 return decrypted[:-pad] if pad else decrypted
75
76
77class _Prpcrypt:

Callers 15

_get_installed_versionFunction · 0.80
_get_glibc_versionFunction · 0.80
_is_china_networkFunction · 0.80
_is_pid_aliveFunction · 0.80
_random_wechat_uinFunction · 0.80
upload_media_to_cdnFunction · 0.80
download_media_from_cdnFunction · 0.80
POSTMethod · 0.80
_loads_wecom_ws_jsonFunction · 0.80
_load_image_base64Method · 0.80
_upload_mediaMethod · 0.80
GETMethod · 0.80

Calls

no outgoing calls

Tested by 1

_fake_ok_responseFunction · 0.64