Skip to content

Instantly share code, notes, and snippets.

View rahulk11's full-sized avatar
🎯
Focusing

Rahul Kumar rahulk11

🎯
Focusing
View GitHub Profile
@rahulk11
rahulk11 / hmac_sha1.py
Created August 17, 2021 18:18 — forked from heskyji/hmac_sha1.py
Generate HMAC-SHA1 Signature using Python 3
import hashlib
import hmac
import base64
def make_digest(message, key):
key = bytes(key, 'UTF-8')
message = bytes(message, 'UTF-8')