예제 #1
0
파일: endomondo.py 프로젝트: 7e7/tapiriik
 def _deviceId(self, serviceRecord):
     csp = hashlib.new("md5")
     csp.update(str(serviceRecord.ExternalID).encode("utf-8"))
     csp.update(SECRET_KEY.encode("utf-8"))
     return "tap-" + csp.hexdigest()
예제 #2
0
 def _deviceId(self, serviceRecord):
     csp = hashlib.new("md5")
     csp.update(str(serviceRecord.ExternalID).encode("utf-8"))
     csp.update(SECRET_KEY.encode("utf-8"))
     return "tap-" + csp.hexdigest()