MCPcopy
hub / github.com/wechatpy/wechatpy / decode

Method decode

wechatpy/crypto/pkcs7.py:19–23  ·  view source on GitHub ↗
(cls, decrypted)

Source from the content-addressed store, hash-verified

17
18 @classmethod
19 def decode(cls, decrypted):
20 padding = byte2int(decrypted[-1])
21 if padding < 1 or padding > 32:
22 padding = 0
23 return decrypted[:-padding]

Callers 15

setup.pyFile · 0.80
to_textFunction · 0.80
_requestMethod · 0.80
_handle_resultMethod · 0.80
_handle_resultMethod · 0.80
_decode_resultMethod · 0.80
decrypt_messageMethod · 0.80
rsa_encryptFunction · 0.80
wechat_api_mockFunction · 0.80
wechat_api_mockFunction · 0.80
wechat_api_mockFunction · 0.80
next_openid_mockMethod · 0.80

Calls 1

byte2intFunction · 0.90

Tested by 7

wechat_api_mockFunction · 0.64
wechat_api_mockFunction · 0.64
wechat_api_mockFunction · 0.64
next_openid_mockMethod · 0.64
wechat_api_mockFunction · 0.64
wechat_api_mockFunction · 0.64
wechat_api_mockFunction · 0.64