
hashlib — Secure hashes and message digests - Python
2 days ago · Source code: Lib/hashlib.py This module implements a common interface to many different hash algorithms. Included are the FIPS secure hash algorithms SHA224, SHA256, SHA384, SHA512, (defined in the...
hmac — Keyed-Hashing for Message Authentication - Python
3 days ago · A hash object has the following attributes: HMAC. digest_size ¶ The size of the resulting HMAC digest in bytes. HMAC. block_size ¶ The internal block size of the hash algorithm in bytes.
Cryptographic Services — Python 3.13.3 documentation
1 day ago · This page is licensed under the Python Software Foundation License Version 2. Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License. See History and License for more information. The Python Software Foundation is a non-profit corporation. Please donate. Last updated on Apr 28, 2025 ...
uuid — UUID objects according to RFC 4122 — Python 3.13.3 …
2 days ago · Generate a UUID based on the SHA-1 hash of a namespace identifier (which is a UUID) and a name (which is a bytes object or a string that will be encoded using UTF-8). The uuid module defines the following namespace identifiers for use with uuid3() or uuid5() .
Base16, Base32, Base64, Base85 Data Encodings - Python
4 days ago · This page is licensed under the Python Software Foundation License Version 2. Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License. See History and License for more information.
Built-in Functions — Python 3.13.3 documentation
2 days ago · hash (object) ¶ Return the hash value of the object (if it has one). Hash values are integers. They are used to quickly compare dictionary keys during a dictionary lookup. Numeric values that compare equal have the same hash value (even if they are of different types, as is the case for 1 and 1.0).
crypt — Function to check Unix passwords — Python 3.13.3 …
2 days ago · Applications can use the hashlib module from the standard library. Other possible replacements are third-party libraries from PyPI: legacycrypt , bcrypt , argon2-cffi , or passlib . These are not supported or maintained by the Python core team.
dataclasses — Data Classes — Python 3.13.3 documentation
2 days ago · __hash__() is used by built-in hash(), and when objects are added to hashed collections such as dictionaries and sets. Having a __hash__() implies that instances of the class are immutable. Mutability is a complicated property that depends on the programmer’s intent, the existence and behavior of __eq__() , and the values of the eq and frozen ...
Generate secure random numbers for managing secrets - Python
2 days ago · They should be salted and hashed using a cryptographically strong one-way (irreversible) hash function. Generate a ten-character alphanumeric password with at least one lowercase character, at least one uppercase character, and at least three digits:
collections — Container datatypes — Python 3.13.3 documentation
1 day ago · Source code: Lib/collections/__init__.py This module implements specialized container datatypes providing alternatives to Python’s general purpose built-in containers, dict, list, set, and tuple.,,...