This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Steam uses the standard totp algorithm but instead of displaying the value modulo 1000000, it converts the value to a base26 string | |
# Take the uri from the generated .maFile from https://github.com/Jessecar96/SteamDesktopAuthenticator | |
# Make sure to select no encryption so you can open the json from a text editor | |
# Ported from https://github.com/geel9/SteamAuth/blob/96ca6af3eb03d1a45f7fbff78851f055ba47c0d4/SteamAuth/SteamGuardAccount.cs#L85 | |
from base64 import b32decode | |
from hmac import digest | |
from time import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.tb24.fn.network; | |
import com.google.gson.JsonObject; | |
import com.tb24.fn.model.account.*; | |
import retrofit2.Call; | |
import retrofit2.http.*; | |
import java.util.List; | |
import java.util.Map; |