Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 619 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 619 Bytes

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