As we know that we had an id in Django for each item in models by using which we can access that item. Now I want to encrypt that while sending to the frontend so that the user can't enter random id in URL to access any note. So how can I encrypt that here is what i want
url should look thsi = notes.com/ldsfjalja3424wer0ew8r0 not like this = notes.com/45
class Note(models.Model):
title = models.char
id = model.primary
def create_encryptkey():
And can be decoded in views if needed for any purpose for example to get exact id
Thanks!