[Solved] AttributeError:'bytes' object has no attribute ...
flutterq.com › attributeerrorbytes-object-has-noJul 15, 2021 · To Solve AttributeError:'bytes' object has no attribute 'encode' Error (pad * chr (pad)) is bytes while problems lies with aesEncrypt (text, secKey). It has been called twice with text as str for the first time while as bytes for the second time. AttributeError:'bytes' object has no attribute 'encode'. To Solve AttributeError:'bytes' object has no attribute 'encode' Error (pad * chr (pad)) is bytes while problems lies with aesEncrypt (text, secKey).