mirror of https://github.com/cowrie/cowrie.git
Fix byte error (#1067)
This commit is contained in:
parent
bcf20d85db
commit
8071f72b85
|
@ -88,7 +88,7 @@ class Output(cowrie.core.output.Output):
|
|||
nonce = base64.b64decode(_nonceb64)
|
||||
digest = base64.b64encode(
|
||||
hmac.new(
|
||||
'{0}{1}'.format(nonce, self.userid),
|
||||
b'{0}{1}'.format(nonce, self.userid),
|
||||
base64.b64decode(self.auth_key),
|
||||
hashlib.sha256).digest()
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue