This repository was archived by the owner on Sep 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 220
SHA1 and uhashlib #178
Comments
MicroPython v1.9.2-270-g14fb53e0 on 2017-09-11; ESP32 module with ESP32
Type "help()" for more information.
>>> import binascii, hashlib
>>> hash = hashlib.sha1('mango')
>>> binascii.hexlify(hash.digest())
b'934aae49f648ed870c9c421829f4cece6643cf86'
>>> Works for me, and the hash is correct. Can you send any code that isn't working? |
Thanks! |
If this is resolved, please close. |
The issue I had was the docs refer to the library as uhashlib instead of just hashlib. Thanks again. |
I noticed that as well. All of the libraries that start with 'u' should
import without the 'u'.
I think that this might be a legitimate issue with aliasing. I'll look into
it.
…On Sep 11, 2017 3:13 PM, "rdagger" ***@***.***> wrote:
The issue I had was the docs
<https://docs.micropython.org/en/latest/pyboard/library/uhashlib.html>
refer to the library as uhashlib instead of just hashlib. Thanks again.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#178 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAYHCFxSYxqGUn-22n0vjp--0Z_ohWXfks5shbCkgaJpZM4PTbfa>
.
|
Yeah, just rebuilt and
It also doesn't appear in OK, so the new esp32-specific module was in MICROPY_PORT_BUILTIN_MODULE_WEAK_LINKS but wasn't in MICROPY_PORT_BUILTIN_MODULES, is all. |
nickzoic
added a commit
to nickzoic/micropython-esp32
that referenced
this issue
Sep 12, 2017
@nickzoic Is this still an issue? |
nickzoic
added a commit
to nickzoic/micropython-esp32
that referenced
this issue
Oct 1, 2017
nickzoic
added a commit
that referenced
this issue
Oct 1, 2017
Ok, merged #179 and closing this ... |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I tried to import uhashlib and it doesn't appear to be implemented.
I'm using the latest daily build: esp32-20170911-v1.9.2-270-g14fb53e0.bin
Is there currently any support for sha1?
The text was updated successfully, but these errors were encountered: