How to use the steampy.guard.generate_device_id function in steampy

To help you get started, we’ve selected a few steampy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bukson / steampy / test / test_guard.py View on Github external
def test_generate_device_id(self):
        steam_id = "12341234123412345"
        device_id = guard.generate_device_id(steam_id)
        self.assertEquals(device_id, "android:677cf5aa-3300-7807-d1e2-c408142742e2")
github bukson / steampy / steampy / confirmation.py View on Github external
def _create_confirmation_params(self, tag_string: str) -> dict:
        timestamp = int(time.time())
        confirmation_key = guard.generate_confirmation_key(self._identity_secret, tag_string, timestamp)
        android_id = guard.generate_device_id(self._my_steam_id)
        return {'p': android_id,
                'a': self._my_steam_id,
                'k': confirmation_key,
                't': timestamp,
                'm': 'android',
                'tag': tag_string}