Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of s2k_fo #650

Merged
merged 2 commits into from
Nov 5, 2024
Merged

Conversation

kabiroberai
Copy link
Contributor

Apple IDs with "old" passwords (ie those set before a certain date, the cutoff for which I'm not 100% certain) use the s2k_fo protocol rather than s2k. This legacy protocol involved an extra step in the SRP handshake, where the password was hex-encoded before performing PBKDF2 to derive the shared secret. Luckily it's pretty trivial for us to handle this and fix the erroneous "incorrect username or password" errors that it resulted in.

Closes #644 — this is in fact the root cause behind that issue.

@MattKiazyk MattKiazyk added the bugfix Fixes a bug label Nov 5, 2024
@MattKiazyk
Copy link
Contributor

Amazing!

@MattKiazyk MattKiazyk merged commit 7b15450 into XcodesOrg:main Nov 5, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to Fix - invalid username password when logging in
2 participants