About Django Salt Values

Asked 2 years ago, Updated 2 years ago, 132 views

I would like to know what salt values are used when hash passwords.

I followed the sauce, but I didn't know.
I'm wondering if it's SECRET-KEY from setting.py.

Please tell me who it is.

django

2022-09-30 21:38

1 Answers

It depends on the hasher, but I think it's around here.
https://github.com/django/django/blob/b9cf764be62e77b4777b3a75ec256f6209a57671/django/utils/crypto.py#L48-L69

12-digit random alphanumeric string of SHA256 generated from the internal state, time, and SECRET_KEY combination of the random number generator.


2022-09-30 21:38

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.