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

DeprecationWarning: crypto.pbkdf2 without specifying a digest is deprecated. Please specify a digest #385

Open
mesmerize86 opened this issue Jun 7, 2017 · 10 comments

Comments

@mesmerize86
Copy link

Hi

can someone please help me this issue. when i try to run plugins, I got an error.
DeprecationWarning: crypto.pbkdf2 without specifying a digest is deprecated. Please specify a digest

Not sure how to fix it. I am using node ^6.9.2

All I did is changed the password in photoshop remote connection.

Thanks,

@mcilroyc
Copy link
Contributor

mcilroyc commented Jun 7, 2017

My understanding is that this is only a warning. It should not prevent generator from functioning.

Please note that the master branch is not compatible with the released version of photoshop, so try with 3.8.4

@mesmerize86
Copy link
Author

@mcilroyc At the beginning I thought its just a warning. However, when i run any plugin, its terminate and gives a communication error: 1.

I am using photshop cc 2017 with latest version.

@mcilroyc
Copy link
Contributor

mcilroyc commented Jun 8, 2017

@mesmerize86 you can not run master branch of this repository with photoshop 2017

@edzis
Copy link
Contributor

edzis commented Aug 7, 2017

I am now blocked by a similar error message:
Error trace: TypeError: The "digest" argument is required and must not be undefined at pbkdf2 (crypto.js:635:11)
@mcilroyc is there a plan to support the latest Photoshop version?

@realmofadam
Copy link

What version of Photoshop is supported? Is there an alternate branch that supports CC 2017?

@mcilroyc
Copy link
Contributor

@Martin-Pitt
Copy link

Martin-Pitt commented Sep 28, 2017

Per https://nodejs.org/api/crypto.html#crypto_crypto_pbkdf2_password_salt_iterations_keylen_digest_callback

v8.0.0 | The digest parameter is always required now.

Have not been able to run generator core at all. Had to manually hotfix in a digest in my local repo to get it to work.

Deprecation warnings shouldn't be left ignored.

@mcilroyc
Copy link
Contributor

@Martin-Pitt We're working towards updating this. But please note that Photoshop currently includes node.js version 4. It is best to develop plugins using that version to ensure compatibility with generator.

rle-mino pushed a commit to rle-mino/generator-core that referenced this issue Nov 29, 2017
@Martin-Pitt
Copy link

I'm getting this issue again, but this time due to NPM being outdated in #280

@mcilroyc
Copy link
Contributor

mcilroyc commented Mar 5, 2019

@marekhrabe, I just pushed the latest: https://www.npmjs.com/package/generator-core/v/3.11.5

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

No branches or pull requests

5 participants