1.0.12 • Published 5 years ago

encode-me v1.0.12

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

encode-me

Perfect encryption tool for text and JSON object encryption.

Installation

npm i encode-me

Usage

String encryption

const {encrypt, decrypt} = require ('encode-me')

const message = "Hello world"

const encryptedData = encrypt(message,9)
console.log(encryptedData)

const decryptData = decrypt(encryptedData,9)
console.log(decryptData)

JSON Object encryption

const dataObject = {
    name : "Alex",
    age  : 24
}

const encryptedData = encrypt(dataObject,'hello')
console.log(encryptedData)

const decryptedData = decrypt(encryptedData,'hello')
console.log(decryptedData)

What does it do?

encode-me will convert your String message or JSON object in to a ciphertext. For the encryption and decryption process you have to pass a SECRET value as the second paramter. This SECRET value can be a String or an integer. There are two functions in this package.

  • encrypt

    encrypt requires two parameters, targeted text message /JSON object and SECRET. This method will return a encrypted text message or JSON object value.

  • decrypt

    decrypt requires two parameters, encrypted text message / JSON object and SECRET. This method will return a decrypted text message or JSON object value.

When should I use encode-me

If you are trying to convert single text, paragraph or JSON object use encode-me.

Important!

This is a simple fun project. DO NOT USE in production grade softwares.

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago