hashlib
– Hashing related functions
This module implements a subset of the corresponding CPython module,
as described below. For more information, refer to the original
CPython documentation: hashlib
.
Available on these boards
- AITHinker ESP32-C3S_Kit
- AITHinker ESP32-C3S_Kit_2M
- ATMegaZero ESP32-S2
- Adafruit Camera
- Adafruit Feather ESP32 V2
- Adafruit Feather ESP32-S2 TFT
- Adafruit Feather ESP32-S3 TFT
- Adafruit Feather ESP32S2
- Adafruit Feather ESP32S3 4MB Flash 2MB PSRAM
- Adafruit Feather ESP32S3 No PSRAM
- Adafruit Feather HUZZAH32
- Adafruit FunHouse
- Adafruit MagTag
- Adafruit Metro ESP32S2
- Adafruit QT Py ESP32 PICO
- Adafruit QT Py ESP32-S3 no psram
- Adafruit QT Py ESP32C3
- Adafruit QT Py ESP32S2
- Artisense Reference Design RD00
- BastWiFi
- Bee-Motion-S3
- Bee-S3
- CrumpS2
- Cytron Maker Feather AIoT S3
- DFRobot Beetle ESP32-C3
- ESP 12k NodeMCU
- ESP32-C3-DevKitM-1
- ESP32-S2-DevKitC-1-N4
- ESP32-S2-DevKitC-1-N4R2
- ESP32-S3-Box-2.5
- ESP32-S3-Box-Lite
- ESP32-S3-DevKitC-1-N8
- ESP32-S3-DevKitC-1-N8R2
- ESP32-S3-DevKitC-1-N8R8
- ESP32-S3-DevKitM-1-N8
- ESP32-S3-EYE
- ESP32-S3-USB-OTG-N8
- Espressif ESP32-EYE
- Feather ESP32S2 without PSRAM
- FeatherS2
- FeatherS2 Neo
- FeatherS2 PreRelease
- FeatherS3
- Franzininho WIFI w/Wroom
- Franzininho WIFI w/Wrover
- Gravitech Cucumber M
- Gravitech Cucumber MS
- Gravitech Cucumber R
- Gravitech Cucumber RS
- HMI-DevKit-1.1
- Hardkernel Odroid Go
- HexKyS2
- IoTs2
- Kaluga 1
- LILYGO TTGO T-01C3
- LILYGO TTGO T-OI PLUS
- LILYGO TTGO T8 ESP32-S2
- LILYGO TTGO T8 ESP32-S2 w/Display
- MORPHEANS MorphESP-240
- MicroDev microC3
- MicroDev microS2
- MixGo CE
- Oak Dev Tech PixelWing ESP32S2
- ProS3
- S2Mini
- S2Pico
- Saola 1 w/Wroom
- Saola 1 w/Wrover
- Seeed Studio XIAO ESP32C3
- TTGO T8 ESP32-S2-WROOM
- Targett Module Clip w/Wroom
- Targett Module Clip w/Wrover
- TinyS2
- TinyS3
- Waveshare ESP32-S2-Pico
- Wemos Lolin C3 Mini" // from Wemos MP
- nanoESP32-S2 w/Wrover
- nanoESP32-S2 w/Wroom
-
hashlib.new(name, data=b'') → Hash
- Returns a Hash object setup for the named algorithm. Raises ValueError when the named
algorithm is unsupported.
- Returns
a hash object for the given algorithm
- Return type
hashlib.Hash
-
class hashlib.Hash
In progress hash algorithm. This object is always created by a hashlib.new()
. It has no
user-visible constructor.
-
digest_size :int
Digest size in bytes
-
update(data: circuitpython_typing.ReadableBuffer) → None
Update the hash with the given bytes.
- Parameters
data (ReadableBuffer) – Update the hash from data in this buffer
-
digest() → bytes
Returns the current digest as bytes() with a length of hashlib.Hash.digest_size
.