@zenginehq/backend-crypto
v1.0.0
Published
Helper library for encryption and decryption in Zengine backend plugins
Downloads
3
Keywords
Readme
Backend Crypto
Helper module for working with encryption and decryption in Zengine backend plugins. Primarily a simple wrapper of cryptr.
Not to be used for password hashing.
Installation
npm i @zenginehq/backend-crypto
Usage
const znCrypto = require('@zenginehq/backend-crypto');
const encrypted = znCrypto.encrypt(config.cipherKey, 'my secret phrase');
const decrypted = znCrypto.decrypt(config.cipherKey, encrypted);