1.1.0 • Published 2 years ago

@atarraya/encrypt_lib v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 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