Why passwords are not encrypted automatically in Django?

259 views
Skip to first unread message

Ram Mullapudi

unread,
Jul 18, 2020, 5:26:24 PM7/18/20
to Django users
Hi,

We are using HTML forms in our DJango Web Application and user password is not auto encrypted in DJango. Do we need to write additional code to encrypt the password in Django backend?

Best regards

Aldian Fazrihady

unread,
Jul 18, 2020, 7:27:23 PM7/18/20
to django...@googlegroups.com
Hi. Django automatically hashes password when the backend set password using `User.set_password` or `User.create_userr` method.
I think the best practice for password is to hash it instead of to encrypt it. Django already done it.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/46c902b1-007c-4899-8800-588826f82eb3o%40googlegroups.com.


--
Regards,

Reply all
Reply to author
Forward
0 new messages