@elastic/node-crypto

Easy (yet strong) encryption and decryption facilities for Node.js


License
Apache-2.0
Install
npm install @elastic/node-crypto@0.1.0

Documentation

node-crypto

Easy (yet strong) encryption and decryption facilities for Node.js

npm version

This node module that can be used for easily encrypting and decrypting serializable objects. The ease-of-use comes from the fact that this module is opinionated in its (strong) choice of cryptographic algorithms, lengths, and iterations that cannot be overriden by its users.

Currently, all versions of this library are able to decrypt secrets encrypted with previous versions. However, version 1.0.0 introduced the ability to use an optional AAD when encrypting/decrypting secrets.

Maintainers Notes

If you change encryption parameters so that the encrypted result is different from what the current latest release of this library would produce, make sure to bump up the major version of the library before releasing it and ensure that you disclose this breaking change.