Skip to content

Instantly share code, notes, and snippets.

View jricher's full-sized avatar

Justin Richer jricher

View GitHub Profile
@jricher
jricher / http_sig_examples.py
Created May 7, 2021 15:44
HTTP Message Signature Example Generation
#!/usr/bin/env python
import http_sfv
import M2Crypto
import hashlib
rsaTestKey = b"""
-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEAhAKYdtoeoy8zcAcR874L8cnZxKzAGwd7v36APp7Pv6Q2jdsPBRrw
WEBnez6d0UDKDwGbc6nxfEXAy5mbhgajzrw3MOEt8uA5txSKobBpKDeBLOsdJKFq