diff options
Diffstat (limited to 'client.py')
-rw-r--r-- | client.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -5,11 +5,10 @@ from email.utils import formatdate from requests import post from sys import argv -date = formatdate(usegmt=True) - with open(argv[1], 'rb') as f: activity = f.read() +date = formatdate(usegmt=True) digester = hashes.Hash(hashes.SHA256()) digester.update(activity) digest = b64encode(digester.finalize()).decode() |