Closed JustArchi closed 1 year ago
Reproduced with password:
Lw{R7{FdA33h+h*~M9nXmQ}`9P5pd-t*Yc:tm-C`No-{\Qj2Z[:}{[Q(KxL[PzjA9r9]*m~K)'Yy>'}Jk;f+cu4cmH&[?L2i+}fUqqrqkQ=w~3$t4J?"=3+7Rav##FT~
My blind guess is that Steam artificially limits passwords sent over to only certain characters (length limit), since in similar way they cut non-ASCII characters out of it, pending check using NH2 how the official Steam client signs in.
s = t.replace(/[^\x00-\x7F]/g, '').slice(0, 64);
Bingo.
Good catch mate!
@AdamT20054 Steam artificially cuts passwords to first 64 characters. Your 128-char password is effectively first 64 characters exclusively, and you can use first 64 characters to log in, whether in official client, web browser or ASF - also versions without fix above.
I've added logic for ASF to automatically cut those 64 characters in case somebody uses longer passwords, but from security standpoint, the passwords are 64 characters at most. I can't believe Valve didn't even care to tell people that longer passwords are not accepted, but then again what did I expect if they didn't even tell people non-ASCII characters are trimmed as well.
Sigh, fixed.
Cheers! Valve just doing valve things i guess :p
Discussed in https://github.com/JustArchiNET/ArchiSteamFarm/discussions/2899