From 250912777e5ed895d2fbed49ee1d06ec3832f3e8 Mon Sep 17 00:00:00 2001 From: philippj Date: Sat, 4 Jun 2016 19:23:31 +0200 Subject: [PATCH] Added account.py --- steam/guard.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/steam/guard.py b/steam/guard.py index df3c185..7d184f2 100644 --- a/steam/guard.py +++ b/steam/guard.py @@ -1,11 +1,9 @@ import struct -import hashlib from binascii import hexlify from time import time from steam import webapi from steam.core.crypto import hmac_sha1, sha1_hash - def generate_twofactor_code(shared_secret): """Generate Steam 2FA code for login with current time @@ -86,5 +84,5 @@ def generate_device_id(steamid): :return: android device id :rtype: str """ - h = hexlify(str(hashlib.sha1(str(steamid).encode('ascii')))).decode('ascii') + h = hexlify(sha1(str(steamid).encode('ascii'))).decode('ascii') return "android:%s-%s-%s-%s-%s" % (h[:8], h[8:12], h[12:16], h[16:20], h[20:32])