Thanks to visit codestin.com
Credit goes to github.com

Skip to content

HMAC AttributeError #384

Closed
Closed
@cositotito

Description

@cositotito

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions