1.0.0 • Published 3 years ago

hb-encrypt-decrypt v1.0.0

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

HB Encryption Module

Description

A simple module to encrypt and decrypt string.

Options

NameDefaultDescription
encryptionKeynullEncryption key

How to use it

Installation

// First you have to get module and instantiate it

npm i hb-encrypt-decrypt
After installing module, add this to your code:

```javascript
const options = {
    encryptionKey: 'haikel'
};

const encryption = require('hb-encrypt-decrypt')(options);

How to encrypt?

const text = "testmodule"
const resultencrypt = encryption.encrypt(text);

How to decrypt?

const resultdecrypt = encryption.decrypt(resultencrypt)

Contact

Image

1.0.0

3 years ago