-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
(node:16163) Warning: Use Cipheriv for counter mode of aes-256-ctr Error After Upgrading To Node v8.9.0 #16746
Comments
It's in the warning: use |
Thanks...your solution works. |
@ronovar How you get rid it ? pls help |
@bnoordhuis I wonder replacing |
I uploaded a script to make migrating to
Get it here: https://gist.github.com/bnoordhuis/2de2766d3d3a47ebe41aaaec7e8b14df For counter modes it prints a big fat warning that you should take very seriously. |
they should correct the warning, should say "createCipheriv" and be more informative |
@mscheffer As to "more informative", that's too vague to be actionable, you'll have to be more concrete (dare I say: more informative?) |
Hi @bnoordhuis, Thank a lot for your script. It helped me in some cases. But looks like this script doesn't work with PASSPHRASE containing: For example: |
Thanks for your code, a question how we should generate key and iv? |
Today upgraded node to v8.9.0 and after runing my application.js i get this from node:
(node:16163) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:16163) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:16163) Warning: Use Cipheriv for counter mode of aes-256-ctr
it gets warning every seconds so on octa core cpu all threads go up to 100% i can't kill it and need to do in terminal killall -9 node
this code i have in application.js and is working in previus version of node:
var crypto = require('crypto'),
algorithm = 'aes-256-ctr',
So i think i need to change aes-256-ctr to some other algorithm name so please write me how can i fix this so that i can use my application.js in new node version...i need minor change in code so that my code changes untouched...so what is fix for this?
The text was updated successfully, but these errors were encountered: