adafruit library on pico

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
rikun99
Posts: 5
Joined: Wed Oct 06, 2021 11:19 am

adafruit library on pico

Post by rikun99 » Tue Oct 26, 2021 12:25 pm

while i'm still trying to recompile micropython for hashlib with sha1 support (see viewtopic.php?f=21&t=11220) i just found out that downloading files from this adafruit library (https://pypi.org/project/adafruit-circu ... n-hashlib/) can let you use sha1 on micropython. Btw is very very slow! Is it normal? I mean, will i get same hashing speed in standard uhashlib for micropython? or there is an explanation and possible a way to make the sha1 hashing faster?

i'm using it like this:

Code: Select all

from adafruit_hashlib import _sha1 as hashlib
hashlib.sha1('foobar').hexdigest()

Post Reply