Mojo package
hashlib
Cryptographic and non-cryptographic hashing with customizable algorithms.
The hashlib package provides hashing functionality for computing hash values
of data. It defines the core hashing infrastructure through the Hasher trait
for implementing hash algorithms and the Hashable trait for types that can be
hashed. The package supports both compile-time and runtime hashing with
pluggable hash algorithm implementations.
Use this package for implementing hash-based data structures, creating hashable
types, computing checksums, or building custom hash algorithms. Types that
implement Hashable can be used as dictionary keys or in sets.
Modulesโ
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!