1.0.0 • Published 3 years ago

@chris7ca/encrypt_lib v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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