alimogh / python-hmac

A "keyed-hash message authentication code" (hmac) implementation in pure python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-hmac

Title: A "keyed-hash message authentication code" implementation in pure python.

License: This code is in Public Domain or MIT License, choose a suitable one for you.

Description: This HMAC implementation is in accordance with RFC 2104 specification. User supplied "key" and "message" must be a Python Byte Object.

         Usage:
         
         from hmac import HMAC
         from hashlib import md5
         
         h = HMAC (b"key",b"The quick brown fox jumps over the lazy dog",md5)
         h.hexdigest() => outputs 80070713463e7749b90c2dc24911e275

About

A "keyed-hash message authentication code" (hmac) implementation in pure python.

License:MIT License


Languages

Language:Python 100.0%