I’m going to change encrypt logic from php to python3. The original code has logic for padding ascii, i brought it into my python code. from to but two of encrytor work different when to_pkcs7 got 11 characters (ex “12345678901”) and return result contain control character(ex 12345678901x05x05x05x05x05, chr(5) means ENQ x05). i think the control character of result purhaps ignored