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

1.1.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

Readme

Keywords

Package Sidebar

Install

npm i @sihay.ztch/encrypt_lib

Weekly Downloads

56

Version

1.1.0

License

MIT

Unpacked Size

13.7 kB

Total Files

27

Last publish

Collaborators

  • sihay.ztch