Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@ public async Task<CredentialsAuthSession> BeginAuthSessionViaCredentialsAsync( A

// Encrypt the password
var publicKey = await GetPasswordRSAPublicKeyAsync( details.Username! ).ConfigureAwait( false );

// Password limit is 64. If it's longer, trim it.
if (!string.IsNullOrEmpty(details.Password) && details.Password.Length > 64)
{
DebugLog.WriteLine(nameof(SteamAuthentication), "Notice: password is longer than 64 characters and will be trimmed.");
details.Password = details.Password.Substring(0, 64);
}

var rsaParameters = new RSAParameters
{
Modulus = Utils.DecodeHexString( publicKey.publickey_mod ),
Expand Down