liveBook · Manning

Hashlib

hashlib is a Python standard-library module providing constructors and operations for cryptographic hash algorithms and message digests.

How 2 Manning books explain it

Effective Data Analysis

hashlib is Python's standard library module providing common secure hash and message-digest algorithms.

How it is used
Uses deterministic hashes as analytics-safe identifiers while separating protected email data from transaction records.
How deep it goes
Explains deterministic behavior, input sensitivity, SHA-256 application, table separation, and future reversibility risks.
Examples
Demonstrates hashing email columns and maintaining a separate email-to-hash table for customer joins.
What you can do after
Apply it via Python and pandas to create SHA-256 identifiers and remove emails from analytics tables.

Read how Effective Data Analysis explains hashlib →

Python Concurrency with asyncio

hashlib is Python’s standard-library module providing common cryptographic hash algorithms and related constructors.

How it is used
Uses cryptographic hashing for password protection, tamper checking, and CPU-bound workloads that can benefit from threads.
How deep it goes
Explains hash purpose, salts, algorithm choices, and threaded execution, but stops short of detailed cryptographic internals.
Examples
Demonstrates salted scrypt hashing for 10,000 generated passwords synchronously and through threaded asyncio execution.
What you can do after
Apply scrypt to salted password hashing and distribute suitable hashing workloads across threads with asyncio.

Read how Python Concurrency with asyncio explains hashlib →

Related concepts

Questions about hashlib

What is hashlib?

hashlib is a Python standard-library module providing constructors and operations for cryptographic hash algorithms and message digests.

Which Manning books explain hashlib?

Effective Data Analysis and Python Concurrency with asyncio.

What is the difference between hashlib and gpg?

hashlib is a Python standard-library module providing constructors and operations for cryptographic hash algorithms and message digests. GPG is a command-line implementation of the OpenPGP standard for encryption, decryption, digital signatures, verification, and cryptographic key management.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.