Skip to content

Commit

Permalink
doc: warn that md5 and sha1 are no longer considered secured
Browse files Browse the repository at this point in the history
  • Loading branch information
rmmancom committed Jul 4, 2024
1 parent 42351c3 commit 58a38fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Doc/library/hashlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ Using :func:`new` with an algorithm name:
>>> h.hexdigest()
'031edd7d41651593c5fe5c006fa5752b37fddff7bc4e843aa6af0c950f4b9406'

.. warning::

:func:`md5` and :func:`sha1` algorithms are considered insecure and may
be removed from the python interpreter. Consider :func:`sha256` instead.

.. function:: md5([, data], *, usedforsecurity=True)
.. function:: sha1([, data], *, usedforsecurity=True)
Expand Down

0 comments on commit 58a38fe

Please sign in to comment.