https://gist.github.com/vivosmith/f0e692d9aedbc39ec8d3eb4651bc107c
I was trying to implement this video in Python 3
But the issue is that, it was implemented in Python 2
So I tried to implement this with binascii instead of encode/decode. However I keep getting a binascii.Error: Odd-length string at line 22.
How to I correct this? Or if this is completely broken, then is there any other libraries that work better for python 3?