Helper library for encryption and decryption in Zengine backend plugins
npm install @zenginehq/backend-cryptoHelper module for working with encryption and decryption in Zengine backend plugins. Primarily a simple wrapper of cryptr.
Not to be used for password hashing.
``bash`
npm i @zenginehq/backend-crypto
`js
const znCrypto = require('@zenginehq/backend-crypto');
const encrypted = znCrypto.encrypt(config.cipherKey, 'my secret phrase');
const decrypted = znCrypto.decrypt(config.cipherKey, encrypted);
``