django-cryptography: Error accessing the encrypt fields.
Data got encrypted when I created a field wrapping with encrypt method. But when I access any obj.field a Value Error is raised.
ValueError: Invalid padding bytes
Which in turn raises
django_cryptography.utils.crypto.InvalidToken
Django==3.0.7 djangorestframework==3.11.0 cryptography==3.1 django-cryptography==1.0
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 34
Yes, I wrote the migration. The data is encrypted inside the DB as plain text.