Page 1 of 1

Hashing implemented in WiPy?

Posted: Mon Jul 25, 2016 1:49 pm
by soobrosa
Hi,

description says that MD5 and SHA shouldn't be a problem. I could't find them on my WiPy?

Please help me, thanks,
Daniel

Re: Hashing implemented in WiPy?

Posted: Mon Jul 25, 2016 3:11 pm
by soobrosa
Even after upgrading to 1.8.2.

Code: Select all

>>> import uhashlib
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: module not found

Re: Hashing implemented in WiPy?

Posted: Mon Jul 25, 2016 3:38 pm
by pythoncoder
The micropython libraries are here https://github.com/micropython/micropython-lib. You need to install the ones you plan to use. It is done this way to conserve space on resource limited devices.

Re: Hashing implemented in WiPy?

Posted: Tue Jul 26, 2016 9:52 am
by soobrosa
Thanks!

Re: Hashing implemented in WiPy?

Posted: Wed Jul 27, 2016 9:37 am
by soobrosa
So it means that my noob question is what is the easiest way to get to a shell so one can

Code: Select all

$ pip-micropython install ...
?

Is

Code: Select all

upy-shell
the easiest way? https://github.com/dhylands/upy-shell

Thank you!

Re: Hashing implemented in WiPy?

Posted: Wed Jul 27, 2016 3:57 pm
by pythoncoder
Or just use FTP to copy across the Python library files you need.

Re: Hashing implemented in WiPy?

Posted: Thu Jul 28, 2016 5:50 pm
by soobrosa
Good point, thanks.