weworkapi_python
weworkapi_python copied to clipboard
PKCS7Encoder补位问题
PKCS7Encoder类中,amount_to_pad == 0不会发生
代码如下: amount_to_pad = self.block_size - (text_length % self.block_size) if amount_to_pad == 0: amount_to_pad = self.block_size