Fixes broadcasting
This commit is contained in:
parent
acba5cfc75
commit
8260dcf804
2 changed files with 2 additions and 3 deletions
|
@ -44,8 +44,7 @@ def make_signature(sender, destination, date, digest):
|
|||
|
||||
def make_digest(data):
|
||||
''' creates a message digest for signing '''
|
||||
return 'SHA-256=' + b64encode(hashlib.sha256(data.encode('utf-8'))\
|
||||
.digest()).decode('utf-8')
|
||||
return 'SHA-256=' + b64encode(hashlib.sha256(data).digest()).decode('utf-8')
|
||||
|
||||
|
||||
def verify_digest(request):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue