Skip to content

can we set autoPadding for key and iv in crypto.createCipheriv(algorithm, key, iv)? #14072

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

Closed
zaheerehmad opened this issue Jul 4, 2017 · 2 comments
Labels
crypto Issues and PRs related to the crypto subsystem. feature request Issues that request new features to be added to Node.js.

Comments

@zaheerehmad
Copy link

zaheerehmad commented Jul 4, 2017

If we create a new instance using crypto.createCipheriv(algorithm, key, iv) it throws an error of invalid key length. Can we set auto padding so that if the key is short than it automatically adds padding to key or do we manually need to append it, the key here can be of dynamic length?

@mscdex mscdex added crypto Issues and PRs related to the crypto subsystem. feature request Issues that request new features to be added to Node.js. labels Jul 4, 2017
@mscdex
Copy link
Contributor

mscdex commented Jul 4, 2017

This would be too magical for my taste.

@bnoordhuis
Copy link
Member

Closing, no one seems to be in favor of this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crypto Issues and PRs related to the crypto subsystem. feature request Issues that request new features to be added to Node.js.
Projects
None yet
Development

No branches or pull requests

3 participants