Skip to main content

Introduction

Documentation Status Discord Build Status Code Style: Ruff

This module implements a common interface to many different secure hash and message digest algorithms. Included are the FIPS secure hash algorithms SHA1, SHA224, SHA256, SHA384, and SHA512 (defined in FIPS 180-2) as well as RSA’s MD5 algorithm (defined in Internet RFC 1321).

The SHA1 algorithm is not supported by the CircuitPython module.

This library is based on the work performed in the micropython-lib hashlib module by Paul Sokolovsky

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install adafruit-circuitpython-hashlib

To install system-wide (this may be required in some cases):

sudo pip3 install adafruit-circuitpython-hashlib

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-hashlib

Usage Example

import adafruit_hashlib as hashlib
m = hashlib.sha256()
m.update(b"CircuitPython")
print("Msg Hex Digest: {}\nMsg Digest Size: {}\nMsg Block Size: {}".format(
        m.hexdigest(), m.digest_size, m.block_size))

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Release files for adafruit-circuitpython-hashlib 1.4.22

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adafruit-circuitpython-hashlib 1.4.22
File Size Uploaded
adafruit_circuitpython_hashlib-1.4.22.tar.gz 33.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adafruit-circuitpython-hashlib 1.4.22
File Interpreter ABI Platform
adafruit_circuitpython_hashlib-1.4.22-py3-none-any.whl Python 3 none any Details

Total release size: 51.9 kB

Release files / adafruit_circuitpython_hashlib-1.4.22.tar.gz

Download URL adafruit_circuitpython_hashlib-1.4.22.tar.gz
Size 33.0 kB
Tags Source
SHA-256 checksum
How to use checksums
244c7740066f7402930330d7e784e7205b752610cd18d5d01fd7e7bc8c3a38f9
BLAKE2b-256 checksum
How to use checksums
9576d5089be167c343459d6468c7c3db60adc0a93299a59bc8fcb75139b0a17b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / adafruit_circuitpython_hashlib-1.4.22-py3-none-any.whl

Download URL adafruit_circuitpython_hashlib-1.4.22-py3-none-any.whl
Size 18.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74e4a1f21eca0f0d7da02886283684709e83f50886b47a92579b2ff054d39c0f
BLAKE2b-256 checksum
How to use checksums
922f8b96885003debee201eae06ba1773661190d4745f7037b9077b25f3e20c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

1.4.22 This release

2 release files

1.4.21

2 release files

1.4.20

2 release files

1.4.19

2 release files

1.4.18

2 release files

1.4.17

2 release files

1.4.14

2 release files

1.4.13

2 release files

1.4.12

2 release files

1.4.11

2 release files

1.4.10

2 release files

1.4.9

2 release files

1.4.8

2 release files

1.4.7

2 release files

1.4.6

1 release file

1.4.5

1 release file

1.4.4

1 release file

1.4.3

1 release file

1.4.2

1 release file

1.4.1

1 release file

1.4.0

1 release file

1.3.6

1 release file

1.3.5

1 release file

1.3.4

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page