encode-me v1.0.12
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.