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

Harden 2FA/TOTP implementation according to rfc6238 (part 1) #641

Merged
merged 17 commits into from
Oct 19, 2021

Conversation

andreasbrett
Copy link
Contributor

@andreasbrett andreasbrett commented Oct 10, 2021

Implements issue 1 in #640

Copy link
Contributor

@deefdragon deefdragon left a comment

Choose a reason for hiding this comment

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

Minor off by 1 can create keys of less than 64 characters.

src/util.js Outdated Show resolved Hide resolved
src/util.ts Outdated Show resolved Hide resolved
@louislam louislam added this to the 1.9.0 milestone Oct 13, 2021
@louislam
Copy link
Owner

Do not pass the unit test, it seems that the crypto api is not available in the Node.js

@andreasbrett
Copy link
Contributor Author

src/util.ts Outdated Show resolved Hide resolved
@louislam louislam modified the milestones: 1.9.0, Pending Oct 18, 2021
@louislam
Copy link
Owner

Tested working, but forgot to put in the recent release... Postpone to the next release.
Thank you for your contribution.

@andreasbrett
Copy link
Contributor Author

Tested working, but forgot to put in the recent release... Postpone to the next release. Thank you for your contribution.

You're welcome. Last puzzle piece for respecting rfc6238 is also PRed as of now (#743). Would be great if you could add this to the next release as well. It's a simple but important fix.

@louislam louislam merged commit 9c80e1c into louislam:master Oct 19, 2021
@louislam louislam modified the milestones: Pending, 1.10.0 Oct 19, 2021
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.

3 participants