Skip to content

Implementation of HMAC (Hashed Message Authentication Code) Algorithm without importing the in-built library 'hmac'.

Notifications You must be signed in to change notification settings

AdityaShreySharma/HMAC-Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

HMAC-Algorithm

Implementation of HMAC (Hashed Message Authentication Code) Algorithm without importing the in-built Python Library, 'hmac'.

To use a different Hash Algorithm, change the third parameter of the hmacGenerator function from hashlib.sha256 to the preferred choice in the line 136 of the code.

signature = base64encode(hmacGenerator(key, message, hashlib.sha256).digest())

For example - hashlib.sha512, hashlib.sha1 etc.

Output with SHA-256 as the Hash Algorithm :-

SHA256

Output with SHA-512 as the Hash Algorithm :-

SHA512

About

Implementation of HMAC (Hashed Message Authentication Code) Algorithm without importing the in-built library 'hmac'.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages