mod_http_upload_external backend implementation on Cloudflare Workers with S3 support, compatible with Prosody and eJabberd
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
402 B

#!/usr/bin/env python
# HMAC_SHA256 implemented in Python
# used to test our implementation for signature verification
# usage: [key] [str]
# in [str], all ';' will be replaced with '\0'
import hmac
import hashlib
import sys
signature =[1] , 'utf-8'), msg = bytes(sys.argv[2].replace(";", "\0"), 'utf-8'), digestmod = hashlib.sha256).hexdigest()