Fix byte error (#1067)

This commit is contained in:
Mehtab Zafar 2019-03-23 16:39:55 +05:30 committed by Michel Oosterhof
parent bcf20d85db
commit 8071f72b85
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class Output(cowrie.core.output.Output):
nonce = base64.b64decode(_nonceb64) nonce = base64.b64decode(_nonceb64)
digest = base64.b64encode( digest = base64.b64encode(
hmac.new( hmac.new(
'{0}{1}'.format(nonce, self.userid), b'{0}{1}'.format(nonce, self.userid),
base64.b64decode(self.auth_key), base64.b64decode(self.auth_key),
hashlib.sha256).digest() hashlib.sha256).digest()
) )