public void HandleConnectedCallback(SteamUser user) { byte[]? hash = null; if (Sentry.Exists) { using (var sha = SHA1.Create()) { using (var fs = Sentry.OpenRead()) { hash = sha.ComputeHash(fs); } } } user.LogOn(new SteamUser.LogOnDetails { Username = Username, LoginKey = LoginKey, ShouldRememberPassword = true, SentryFileHash = hash }); }