summaryrefslogtreecommitdiff
path: root/django/utils/crypto.py
AgeCommit message (Expand)Author
2021-01-14Refs #31359 -- Made get_random_string()'s length argument required.Mariusz Felisiak
2021-01-13Refs #31358 -- Added constant for get_random_string()'s default alphabet.Florian Apolloner
2020-09-07Fixed #31985 -- Corrected salted_hmac()'s docstring about supported algorithms.Francisco Couzo
2020-03-11Fixed typo in django/utils/crypto.py.Mariusz Felisiak
2020-03-11Fixed #31359 -- Deprecated get_random_string() calls without an explicit length.Claude Paroz
2020-01-27Refs #27468 -- Added algorithm parameter to django.utils.crypto.salted_hmac().Claude Paroz
2020-01-15Fixed obsolete comment in django.utils.crypto.salted_hmac().Mariusz Felisiak
2019-05-20Fixed #27635 -- Used secrets module in django.utils.crypto.Nick Pope
2019-05-20Refs #27635 -- Removed fallback when SystemRandom() isn't available that does...Nick Pope
2018-01-03Fixed #28982 -- Simplified code with and/or.Дилян Палаузов
2017-02-11Refs #27656 -- Updated django.utils docstring verbs according to PEP 257.Anton Samarchyan
2017-02-09Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().Tim Graham
2017-01-19Refs #23919 -- Removed obsolete compare_digest() and pbkdf2() implementations.Tim Graham
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-11-14Fixed #27463 -- Fixed E741 flake8 warnings.Ramin Farajpour Cami
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-12-13Fixed #23812 -- Changed django.utils.six.moves.xrange imports to rangeMichael Hall
2014-07-11Bump the default iterations for PBKDF2.Alex Gaynor
2014-05-31Note that the stdlib's version of pbkdf2_hmac will also be used in the upcomi...Alex Gaynor
2014-05-28Fixed constant_time_compare on Python 2.7.7Florian Apolloner
2014-04-22Use the stdlib's compare_digest for constant time comparisons when availableAlex Gaynor
2014-04-17Typo fixAlex Gaynor
2014-04-17Use the stdlib's PBKDF2 implementation when available.Alex Gaynor
2014-02-16Fixed #19980: Signer broken for binary keys (with non-ASCII chars).MattBlack85
2013-11-05Flake8 fixesAlex Gaynor
2013-11-04Simplify (and very very slightly speed up) the pbkdf2 implementationAlex Gaynor
2013-10-21Fixed #21253 -- PBKDF2 with cached HMAC keyFlorian Apolloner
2013-10-18Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol
2013-09-24Fixed #21138 -- Increased the performance of our PBKDF2 implementation.Florian Apolloner
2013-09-19Increase default PBKDF2 iterationsPaul McMillan
2013-08-30Fixed #20989 -- Removed useless explicit list comprehensions.Simon Charette
2013-06-02Switched to using some constants the hmac module exposes.Alex Gaynor
2013-03-18Clarified that constant_time_compare doesn't protect string lengths.Aymeric Augustin
2013-02-27[py3] Always fed hashlib with bytes.Łukasz Langa
2012-08-29Replaced many smart_bytes by force_bytesClaude Paroz
2012-08-21Reverted type check added in 62954ba04c.Aymeric Augustin
2012-08-20[py3] Fixed #17040 -- ported django.utils.crypto.constant_time_compare.Aymeric Augustin
2012-08-07[py3] Ported django.utils.crypto.Aymeric Augustin
2012-08-07[py3] Ported django.utils.encoding.Aymeric Augustin
2012-07-22Used a Python 3-compatible syntax for building a translation tableClaude Paroz
2012-07-22[py3] Added Python 3 compatibility for xrange.Aymeric Augustin
2012-07-22[py3] Removed longs.Aymeric Augustin
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
2012-06-06Delayed encoding of password and salt in password checking.Claude Paroz
2012-05-20Imported reduce from functools for forward compatibility.Claude Paroz
2012-05-19Marked bytestrings with b prefix. Refs #18269Claude Paroz
2012-02-23Improved get_random_string().Paul McMillan
2012-02-23Cleanup to use get_random_string consistently.Paul McMillan