diff --git a/python/tmp.jpg b/python/tmp.jpg new file mode 100644 index 0000000..9933ebb Binary files /dev/null and b/python/tmp.jpg differ diff --git a/python/wcferry/client.py b/python/wcferry/client.py index f1895da..620ca00 100644 --- a/python/wcferry/client.py +++ b/python/wcferry/client.py @@ -436,3 +436,19 @@ class Wcf(): req.m.wxids = wxids rsp = self._send_request(req) return rsp.status + + def decrypt_image(self, src: str, dst: str) -> bool: + """解密图片: + Args: + src (str): 加密的图片路径 + dst (str): 解密的图片路径 + + Returns: + bool: 是否成功 + """ + req = wcf_pb2.Request() + req.func = wcf_pb2.FUNC_DECRYPT_IMAGE # FUNC_DECRYPT_IMAGE + req.dec.src = src + req.dec.dst = dst + rsp = self._send_request(req) + return rsp.status == 1