orcasgit / django-fernet-fields

Fernet symmetric encryption for Django model fields
BSD 3-Clause "New" or "Revised" License
193 stars 81 forks source link

Retriving Data from Models raising Invalid token, No exception message supplied Error #9

Open AnandMoorthy opened 6 years ago

AnandMoorthy commented 6 years ago

Hello,

Encrypting the models are good, but after the encryption, if I want to get the data by the id of the row i get the exception error like mentioned above. My Modal

from fernet_fields import EncryptedCharField

class MyModal(models.Model): 
    name = EncryptedCharField(max_length=50, default='')

My code

from app.models import MyModal

def get_details(request):
    data_id = request.GET.get('id')
    data = MyModal.objects.filter(id=data_id)
    print data
    return HttpResponse('Success')
PaverApp commented 6 years ago

Did you ever find a fix for this?

Mrfad commented 1 year ago

same happens with me