@classmethod
    def encode(cls, text):
        length = len(text)
        padding_count = cls.block_size - length % cls.block_size
        if padding_count == 0:
            padding_count = cls.block_size
        padding = to_binary(chr(padding_count))
        return text + padding * padding_count
dataset/ETHPy150Open jxtech/wechatpy/wechatpy/crypto/pkcs7.py/PKCS7Encoder.encode/original