SecurityInnovation / PGPy

Pretty Good Privacy for Python
BSD 3-Clause "New" or "Revised" License
313 stars 98 forks source link

attributeError : 'str' has no attribute 'is_compressed' #434

Open devanshpushkarn opened 1 year ago

devanshpushkarn commented 1 year ago

constant attribute error while using encrypt(). Even tried using compression=None

encrypted_data = key.encrypt(csv_buffer_l3.getvalue(),compression=None)

File "C:\ProgramData\Anaconda3\lib\site-packages\pgpy\decorators.py", line 131, in _action return action(_key, *args, **kwargs)

File "C:\ProgramData\Anaconda3\lib\site-packages\pgpy\pgp.py", line 2541, in encrypt if message.is_compressed and message._compression not in uid.selfsig.compprefs:

AttributeError: 'str' object has no attribute 'is_compressed'