Page 1 of 1

adafruit library on pico

Posted: Tue Oct 26, 2021 12:25 pm
by rikun99
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()