Page 1 of 1

Can't import ucryptolib

Posted: Wed Nov 24, 2021 11:07 am
by Twantie
Hello,

i have a Raspberry Pi Pico and I want to use the ucryptolib (https://docs.micropython.org/en/v1.15/l ... tolib.html) or the cryptolib (https://docs.micropython.org/en/latest/ ... ght=crypto) on this board.

First of all, what is the difference between the two libraries?

And somehow I am not able to import either of them.
I have read that certain libraries aren't supportet by certain boards, but I cant find anything about supported libraries of the Raspberry Pi Pico or any other board.

Re: Can't import ucryptolib

Posted: Wed Nov 24, 2021 8:07 pm
by scruss
I don't think it's supported/provided in the RP2040 port:

Code: Select all

MicroPython v1.17 on 2021-09-02; Raspberry Pi Pico with RP2040
Type "help()" for more information.
>>> help('modules')
__main__          gc                uasyncio/funcs    uos
_boot             machine           uasyncio/lock     urandom
_onewire          math              uasyncio/stream   ure
_rp2              micropython       ubinascii         uselect
_thread           onewire           ucollections      ustruct
_uasyncio         rp2               uctypes           usys
builtins          uarray            uerrno            utime
cmath             uasyncio/__init__ uhashlib          uzlib
ds18x20           uasyncio/core     uio
framebuf          uasyncio/event    ujson