#36874: Speed up mask/unmask cipher secret functions
-------------------------------------+-------------------------------------
     Reporter:  Tim Lansen           |                     Type:
                                     |  Cleanup/optimization
       Status:  new                  |                Component:  CSRF
      Version:  6.0                  |                 Severity:  Normal
     Keywords:  CSRF cipher token    |             Triage Stage:
  mask unmask                        |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
 The functions **_mask_cipher_secret** and **_unmask_cipher_secret** use
 **chars.index()** to get every char order.
 They scan **CSRF_ALLOWED_CHARS** 64 times on every call.
 The idea is to create translation table and flip every char like XLAT
 does.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36874>
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 visit 
https://groups.google.com/d/msgid/django-updates/0107019be0899dcf-49be2a47-411f-456f-a92e-60414c7fc1b9-000000%40eu-central-1.amazonses.com.

Reply via email to