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 #1044 #1045

Merged
merged 2 commits into from
Oct 26, 2019
Merged

Fix #1044 #1045

merged 2 commits into from
Oct 26, 2019

Conversation

normano
Copy link
Contributor

@normano normano commented Oct 24, 2019

This will fix the password xor scramble length issue by using xorRotated (as specified by MySQL Engineering insider blog).

Issue: #1044

… would cause an invalid index error due to password having greater length than scramble.
… would cause an invalid index error due to password having greater length than scramble.
scramble1,
scramble2
);
return exports.calculateTokenFromPasswordSha(stage1, scramble1, scramble2);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know I did not touch these, so I suppose there must be pre commit hooks to do some auto formatting.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, there is prettier percommit hook

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

via lint-staged

@sidorares
Copy link
Owner

LGTM, happy to merge once CI finish

@sidorares sidorares merged commit f4e7c96 into sidorares:master Oct 26, 2019
vlasky added a commit to vlasky/mysql that referenced this pull request Apr 16, 2021
…ail for passwords longer than 19 characters.

Thanks to sidorares and normano for their guidance.

Refer to:

mysqljs#2233 (comment)
sidorares/node-mysql2#1044
sidorares/node-mysql2#1045

Updated version to 2.18.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants