Skip to main content

Implementation of the UMAC algorithm defined by RFC 4418

Project description

UMAC

This Python package provides an implementation of the UMAC algorithm defined by RFC 4418.

It supports Python 3.11 and later.

Installation

This package is available on PyPI under the name umac.

Usage

The API loosely follows the PEP 247 standard.

from umac import UMAC

mac = UMAC(
    digest_size=4, # Using UMAC-32
    key=b"abcdefghijklmnop",
    nonce=b"bcdefghi",
)

mac.update(b"aaa")
digest = mac.digest()

print(digest.hex())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

umac-1.0-py3-none-any.whl (55.3 kB view details)

Uploaded Python 3

File details

Details for the file umac-1.0-py3-none-any.whl.

File metadata

  • Download URL: umac-1.0-py3-none-any.whl
  • Upload date:
  • Size: 55.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for umac-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e01a5edb0337d801f96e82fc3387a025aacd74caa688741ff561d1e5e9fe158
MD5 ff92fad7d513331167b4608b708f2aec
BLAKE2b-256 04abab212d3d58cc911f54a0b9a62f3d110a7622dfac6625f7f760da40d37f44

See more details on using hashes here.

Provenance

The following attestation bundles were made for umac-1.0-py3-none-any.whl:

Publisher: publish.yml on slietar/umac

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page