Skip to content
Snippets Groups Projects
Select Git revision
  • e2f1a8a7ee7b0a48ceb7a38bf0eff016234914a0
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

uhashlib.rst

Blame
  • user avatar
    Paul Sokolovsky authored
    TODO: Remove WiPy-specific chunks.
    e2f1a8a7
    History
    uhashlib.rst 3.17 KiB

    :mod:`uhashlib` -- hashing algorithms

    This module implements binary data hashing algorithms. The exact inventory of available algorithms depends on a board. Among the algorithms which may be implemented:

    • SHA256 - The current generation, modern hashing algorithm (of SHA2 series). It is suitable for cryptographically-secure purposes. Included in the MicroPython core and any board is recommended to provide this, unless it has particular code size constraints.
    • SHA1 - A previous generation algorithm. Not recommended for new usages, but SHA1 is a part of number of Internet standards and existing applications, so boards targetting network connectivity and interoperatiability will try to provide this.
    • MD5 - A legacy algorithm, not considered cryptographically secure. Only selected boards, targetting interoperatibility with legacy applications, will offer this.

    Constructors

    Create an SHA256 hasher object and optionally feed data into it.

    Create an SHA1 hasher object and optionally feed data into it.

    Create an MD5 hasher object and optionally feed data into it.

    Methods