@chris7ca/encrypt_lib
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i @chris7ca/encrypt_lib

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    12 kB

    Total Files

    27

    Last publish

    Collaborators

    • chris7ca