1.0.0 • Published 5 years ago

@zenginehq/backend-crypto v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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);