Skip to main content

calc_hmac

Overview

Calculate HMAC (Hash-based Message Authentication Code).

Usage

Installation:

pip3 install calc_hmac
# or
python3 -m pip install calc_hmac

Examples

With all options:

calculate_hmac \
   -l 64 \
   -d "sha512" \
   -b "utf-8" \
   -t "stdin" \
   -i "This is the content to be verified." \
   -k "keyhexifnotgeneratingrandomly" \
   -e "hmachexifcomparingvalues"

With defaults:

calculate_hmac \
   -t "stdin" \
   -i "This is the content to be verified." \
   -k "keyhexifnotgeneratingrandomly" \
   -e "hmachexifcomparingvalues"

Example Output

Compare values:

Key: "generatedorspecifiedkeyhex"
Calculated HMAC: "calculatedhmacvalue"
HMAC is valid.

Generate hash:

Key: "generatedorspecifiedkeyhex"
Calculated HMAC: "calculatedhmacvalue"

Release files for calc_hmac 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for calc_hmac 1.0.0
File Size Uploaded
calc_hmac-1.0.0.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for calc_hmac 1.0.0
File Interpreter ABI Platform
calc_hmac-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / calc_hmac-1.0.0.tar.gz

Download URL calc_hmac-1.0.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
726b7a4d0fa7a01f341c64edb5dbd518742f5a9c66fad98d136108dc9a1d3a1f
BLAKE2b-256 checksum
How to use checksums
473d418f72bf21a2262a30cb9f5b05e6a3c3714d50849e3b0a3231168401623d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.14.4 Linux/5.15.154+

Release files / calc_hmac-1.0.0-py3-none-any.whl

Download URL calc_hmac-1.0.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3321d72b13a228500e3e1eec59279467da2bd7f44f33d6ef0480f998b28674e
BLAKE2b-256 checksum
How to use checksums
127946131d30a77cc46f9704ed059c1cb2a068a4f5f497777e8e31f8086c123e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.14.4 Linux/5.15.154+

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page