Metadata-Version: 2.4
Name: calc_hmac
Version: 1.0.0
Summary: Calculate HMAC (Hash-based Message Authentication Code).
License: GPL-2.0-only
Keywords: Python,Module,calculate,HMAC,hash,authentication
Author: Ahmad Ferdaus Abd Razak
Author-email: fer1035@gmail.com
Requires-Python: >=3.13,<4.0
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Project-URL: Repository, https://gitlab.com/fer1035_python/modules/pypi-calc_hmac
Description-Content-Type: text/x-rst

=============
**calc_hmac**
=============

Overview
--------

Calculate HMAC (Hash-based Message Authentication Code).

Usage
-----

Installation:

.. code-block:: BASH

   pip3 install calc_hmac
   # or
   python3 -m pip install calc_hmac

Examples
--------

With all options:

.. code-block:: BASH

   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:

.. code-block:: BASH

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

Example Output
--------------

Compare values:

.. code-block:: BASH

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

Generate hash:

.. code-block:: BASH

   Key: "generatedorspecifiedkeyhex"
   Calculated HMAC: "calculatedhmacvalue"

