ID EN
Hashlib

new

Python 3.11

Is a generic constructor that takes the string name of the desired algorithm as its first parameter. It also exists to allow access to the above listed hashes as well as any other algorithms that your OpenSSL library may offer.

Syntax

PYTHON
hashlib.new(name, [data, ]*, usedforsecurity=True)