Skip to content

Commit

Permalink
Merge e120d3a into a7073fe
Browse files Browse the repository at this point in the history
  • Loading branch information
dd-han committed May 6, 2016
2 parents a7073fe + e120d3a commit 595a04f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyotp/otp.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def byte_secret(self):
missing_padding = len(self.secret) % 8
if missing_padding != 0:
self.secret += '=' * (8 - missing_padding)
return base64.b32decode(self.secret, casefold=True)
return base64.b32decode(bytes(self.secret, 'utf-8'), casefold=True)

@staticmethod
def int_to_bytestring(i, padding=8):
Expand Down

0 comments on commit 595a04f

Please sign in to comment.