Skip to content

Nodejs version8 Compatible fix for crypto.pbkdf2Sync method - #3

Merged
73rhodes merged 1 commit into
73rhodes:masterfrom
airicyu:master
Sep 14, 2017
Merged

Nodejs version8 Compatible fix for crypto.pbkdf2Sync method#3
73rhodes merged 1 commit into
73rhodes:masterfrom
airicyu:master

Conversation

@airicyu

@airicyu airicyu commented Sep 9, 2017

Copy link
Copy Markdown
Contributor

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

airicyu commented Sep 9, 2017

Copy link
Copy Markdown
Contributor Author

Just submitted issue related to this fix #4

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

Copy link
Copy Markdown
Owner

Thanks for contributing to this.

@ealtuna

ealtuna commented Oct 3, 2017

Copy link
Copy Markdown

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