@atarraya/encrypt_lib
v1.1.0
Published
Encryption lib
Downloads
10
Readme
Encryption / Descryption library
This library provide support for encryption and decryption
Methods
Encrypt
import { encrypt } from '../encryption';
const input = 'Text to ecrypt';
const secret = 'long-secret-string';
const ecryptedText = await encrypt(input, secret);
Decrypt
import { decrypt } from '../decryption';
const ecryptedText = 'encrypted-text';
const secret = 'long-secret-string';
const text = await encrypt(ecryptedText, secret);
Installation
$ npm install --save @sihay.ztch/encrypt_lib