mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 18:04:49 -04:00
Add null separator to hmac
This commit is contained in:
parent
be3548f7e1
commit
0da24cac8b
2 changed files with 4 additions and 0 deletions
|
@ -32,7 +32,9 @@ def request_registration(user, password, server_location, shared_secret, admin=F
|
|||
)
|
||||
|
||||
mac.update(user)
|
||||
mac.update("\x00")
|
||||
mac.update(password)
|
||||
mac.update("\x00")
|
||||
mac.update("admin" if admin else "notadmin")
|
||||
|
||||
mac = mac.hexdigest()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue