#31358: Increase default password salt size in BasePasswordHasher.
--------------------------------------+------------------------------------
     Reporter:  Jon Moroney           |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Utilities             |                  Version:  master
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  1                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

 In [changeset:"c76d51b3ad34bc2ed2155054bfb283ef53beb26a" c76d51b3]:
 {{{
 #!CommitTicketReference repository=""
 revision="c76d51b3ad34bc2ed2155054bfb283ef53beb26a"
 Refs #31358 -- Fixed decoding salt in Argon2PasswordHasher.

 Argon2 encodes the salt as base64 for representation in the final hash
 output. To be able to accurately return the used salt from decode(),
 add padding, b64decode, and decode from latin1 (for the remote
 possibility that someone supplied a custom hash consisting solely of
 bytes -- this would require a manual construction of the hash though,
 Django's interface does not allow for that).
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31358#comment:50>
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/066.c60ea06b275db24f4966b8c6ee1cb1bc%40djangoproject.com.

Reply via email to