From python 3.9 hashlib introduced the usedforsecurity argument: Changed in version 3.9: All hashlib constructors take a keyword-only argument usedforsecurity with default value True. A false value ...