I can\'t figure out what the \'bytes\' method is complaining about. In the code below, i am trying to generate an authentication key for my client and i keep getting this er
try,
import hmac import hashlib import base64 message = bytes("Message") secret = bytes("secret") signature = base64.b64encode(hmac.new(secret, message, digestmod=hashlib.sha256).digest()) print(signature)