#33475: Add a SESSION_KEY_LENGTH setting
----------------------------------+--------------------------------------
Reporter: jecarr | Owner: nobody
Type: New feature | Status: new
Component: contrib.sessions | Version: dev
Severity: Normal | Resolution:
Keywords: session | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------
Comment (by Mariusz Felisiak):
I'm also against a new setting. We allow session keys up to 40 characters
which seems fine when you will take an entropy into account. In cited
requirements we have:
> ''"The session ID value must provide at least 64 bits of entropy."''
As far as I'm aware, with 32-character keys and the current alphabet with
a length of 36 (digits and lowercase ASCII letters), we have ~165 bits of
entropy: `32 * log_2(36)`. With the same alphabet and 40-character keys
you will get ~206 bits of entropy.
--
Ticket URL: <https://code.djangoproject.com/ticket/33475#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.ca9a8c231cba2e8fd3ac9c8d91314eaa%40djangoproject.com.