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

Nodejs version8 Compatible fix for crypto.pbkdf2Sync method #3

Merged
merged 1 commit into from
Sep 14, 2017

Conversation

airicyu
Copy link
Contributor

@airicyu airicyu commented Sep 9, 2017

In old version of NodeJS, crypto.pbkdf2Sync method does not mandatory requiring the digest parameter. Since nodejs 6, calling this method without the digest parameter would having a warning. Since nodejs 8, calling this method without the digest parameter would throw error which breaking some existing codes. For forward compatible concern, we should add the digest parameter which is the default value of 'sha1'.

#nodejs/node#11305

In old version of NodeJS, crypto.pbkdf2Sync method does not mandatory requiring the digest parameter. Since nodejs 6, calling this method without the digest parameter would having a warning. Since nodejs 8, calling this method without the digest parameter would throw error which breaking some existing codes. For forward compatible concern, we should add the digest parameter which is the default value of 'sha1'.
@airicyu
Copy link
Contributor Author

airicyu commented Sep 9, 2017

Just submitted issue related to this fix #4

@73rhodes 73rhodes merged commit 51294d0 into 73rhodes:master Sep 14, 2017
@73rhodes
Copy link
Owner

Thanks for contributing to this.

@ealtuna
Copy link

ealtuna commented Oct 3, 2017

Hi, can you please publish this version in npm?

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