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

chore(Crypto): use createCipheriv and createDecipheriv #78

Conversation

KillerCodeMonkey
Copy link

Use non deprecated crypto methods.
Extend typings and readme

fixes sindresorhus/electron-store#67

@sindresorhus
Copy link
Owner

There's already a PR for this => #76

@KillerCodeMonkey
Copy link
Author

yeah, but i find the implementation a little bit strange, to generate the iv in the conf library, because if a user passes an encryption key the iv should be passed as well.

And there was a little typings fix --> encryptionKey can be a crypto "KeyObject" as well.

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.

Replace deprecated crypto.createDecipher usage with crypto.createDecipheriv
2 participants