-
Notifications
You must be signed in to change notification settings - Fork 1k
HMAC AttributeError #384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
import hmac secret="345fg-dfg"
Traceback (most recent call last): |
Fwiw, I ran into the same issue and pushed a PR that fixes this for me. Let's see what the code review says. |
Should be fixed by f95260d |
hello all,
I have a problem when using 'import hmac' and I try to use it on my esp32
before using it, I install it and it installs correctly, the code is the following:
import upip
upip.install ("hmac")
the code is the following to use hmac:
digest = hmac.new (s.decode ("base64"), a, hashlib.sha3_256) .digest ()
the error that prints to me on my console:
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'new'
How can I use the new or remove this error?
I would appreciate the help
The text was updated successfully, but these errors were encountered: