summaryrefslogtreecommitdiffstats
path: root/Lib/secrets.py
Commit message (Collapse)AuthorAgeFilesLines
* 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