herrersystem / fbxtools

Interface within Freebox API and Python
GNU General Public License v3.0
13 stars 5 forks source link

connect_app : hmac.new(app_token.encode(), challenge, 'sha1') #2

Closed afer92 closed 7 years ago

afer92 commented 7 years ago

Dans le calcul du hash, la chaîne 'sha1' est en anomalie.

Proposition de correction :

from hashlib import sha1 hmac.new(app_token.encode(), challenge, sha1)

herrersystem commented 7 years ago

Ne touche que python 2.x. Je vais expliciter dans le readme (déjà explicité dans le setup.py) que ce module n'est pas développé pour la branche 2 de python.