security; we don't care about that

This commit is contained in:
Benjamin Peterson 2017-09-07 17:12:55 -07:00
parent e4bcab24d7
commit 4c66411b5c
1 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,8 @@ the source file. We will use a SipHash_ with a hardcoded key of the contents of
the source file. Another a fast hash like MD5 or BLAKE2_ would also work. We
choose SipHash because Python already has a builtin implementation of it from
:pep:`456`, although an interface that allows picking the SipHash key must be
exposed to Python.
exposed to Python. Security of the hash is not a concern, though we pass over
red-flag hashes like MD5 to ease auditing of Python in controlled environments.
When Python encounters a hash-based pyc, its behavior depends on the setting of
the ``check_source`` flag. If the ``check_source`` flag is set, Python will