summaryrefslogtreecommitdiffstats
path: root/Lib/secrets.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-99305: Speed up secrets.token_hex() ~2x (#99306)NewUserHa2022-11-111-2/+1
| | | | | simple code modernization. Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
* bpo-47126: Update to canonical PEP URLs specified by PEP 676 (GH-32124)Hugo van Kemenade2022-03-301-1/+1
|
* bpo-40286: Add randbytes() method to random.Random (GH-19527)Victor Stinner2020-04-171-2/+1
| | | | | | | | | | | | Add random.randbytes() function and random.Random.randbytes() method to generate random bytes. Modify secrets.token_bytes() to use SystemRandom.randbytes() rather than calling directly os.urandom(). Rename also genrand_int32() to genrand_uint32(), since it returns an unsigned 32-bit integer, not a signed integer. The _random module is now built with Py_BUILD_CORE_MODULE defined.
* Issue #29061: secrets.randbelow() would hang with a negative inputRaymond Hettinger2016-12-301-0/+2
|
* Shorten secrets module docstring, add function docstrings.Steven D'Aprano2016-04-171-76/+30
|
* Remove python fallback for compare_digest.Steven D'Aprano2016-04-151-32/+1
| | | | | See https://mail.python.org/pipermail/python-dev/2016-April/144198.html https://mail.python.org/pipermail/python-dev/2016-April/144203.html
* run Tools/reindent.py on secrets.py to satisfy the checkwhitespace hookSteven D'Aprano2016-04-141-1/+0
|
* Add secrets module and tests.Steven D'Aprano2016-04-141-0/+149