Authenticator icon indicating copy to clipboard operation
Authenticator copied to clipboard

Problem with Steam Codes

Open dommilosz opened this issue 6 years ago • 7 comments

I have problem with adding steam account. When i try to input shared_secret it tells me that secret is incorrect Bez tytułu

Platform: Win 10

  • Browser: Firefox
  • Browser Version: 70.0.1

dommilosz avatar Nov 27 '19 15:11 dommilosz

Are you putting in "shared_secret":"#############################",? You should only enter the text where the hashtags are.

mymindstorm avatar Nov 27 '19 16:11 mymindstorm

yes

dommilosz avatar Nov 27 '19 19:11 dommilosz

only text in quotation marks

dommilosz avatar Nov 27 '19 19:11 dommilosz

Could you run the below code in the console and paste the results here?

Snippet
let pattern1 = /([^a-z2-7])+/i;
let pattern2 = /[^0-9a-f]+/i;
let secret = prompt("Secret");
secret = secret.replace(/ /g, '');

let result1 = pattern1.exec(secret);
let result2 = pattern2.exec(secret)

if (result1 && result2) {
    console.log("b32 invalid:", result1.toString());
	console.log("hex invalid:", result2.toString());
}

mymindstorm avatar Nov 28 '19 20:11 mymindstorm

@dommilosz I think your secret is in base64, see if you can convert it to base32 or hex. I don't have access to a shared_secret, so I can't investigate this that easily.

mymindstorm avatar Dec 09 '19 23:12 mymindstorm

@mymindstorm @dommilosz See #382 for why it isn't working tl;dr you need to copy "uri":"otpauth://totp/Steam:your_steam_username?secret=your_secret_key&issuer=Steam" instead of "shared_secret":"your_secret_key"

AlexApps99 avatar Jan 20 '20 03:01 AlexApps99

I have a problem with Steam codes too. I've imported from Aegis and the Steam import is giving me number codes when it should have letters thus Steam not accepting those codes.

This is the Steam line:

otpauth://steam/Steam%3AUSERNAME?period=30&digits=5&algorithm=SHA1&secret=SECRET&issuer=Steam

1024mb avatar Feb 08 '22 06:02 1024mb