Aller au contenu

« Documentation de l'API Jeuxvideo.com » : différence entre les versions

Espaces
(Clé)
(Espaces)
Ligne 268 : Ligne 268 :
  from Crypto.Cipher import AES
  from Crypto.Cipher import AES
  from passlib.utils.pbkdf2 import pbkdf2
  from passlib.utils.pbkdf2 import pbkdf2
 
  cle = 'package com.jeuxvideo.activity'
  cle = 'package com.jeuxvideo.activity'
  cle = AES.new(pbkdf2(cle, cle, 10, 128/8, 'hmac-sha1'))
  cle = AES.new(pbkdf2(cle, cle, 10, 128/8, 'hmac-sha1'))
 
  string = 'D034ED0612F7607C179BC66894A71654'
  string = 'D034ED0612F7607C179BC66894A71654'
  string = cle.decrypt(string.decode('hex'))
  string = cle.decrypt(string.decode('hex'))
332

modifications