This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients arhadthedev, erlendaasland, gdr@garethrees.org, lemburg, mark.dickinson, rhettinger, vstinner
Date 2021-12-02.15:27:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638458872.64.0.458035808527.issue45476@roundup.psfhosted.org>
In-reply-to
Content
> pysha3-1.0.2

This module must not be used on Python 3.6 and newer which has a built-in support for SHA-3 hash functions. Example:

$ python3.6
Python 3.6.15 (default, Sep  5 2021, 00:00:00) 
>>> import hashlib
>>> h=hashlib.new('sha3_224'); h.update(b'hello'); print(h.hexdigest())
b87f88c72702fff1748e58b87e9141a42c0dbedc29a78cb0d4a5cd81

By the way, building pysha3 on Python 3.11 now fails with:

    Modules/_sha3/backport.inc:78:10: fatal error: pystrhex.h: No such file or directory

The pystrhex.h header file has been removed in Python 3.11 by bpo-45434. But I don't think that it's worth it trying to port it to Python 3.11, if the module must not be used on Python 3.6 and newer.

Environment markers can be used to skip the pysha3 dependency on Python 3.6 on newer.

Example: "pysha3; python_version < '3.6'"
History
Date User Action Args
2021-12-02 15:27:52vstinnersetrecipients: + vstinner, lemburg, rhettinger, mark.dickinson, gdr@garethrees.org, erlendaasland, arhadthedev
2021-12-02 15:27:52vstinnersetmessageid: <1638458872.64.0.458035808527.issue45476@roundup.psfhosted.org>
2021-12-02 15:27:52vstinnerlinkissue45476 messages
2021-12-02 15:27:52vstinnercreate