encryption_api-pkg
v1.0.0
Published
This package can Encrypt and Decrypt String text
Downloads
3
Readme
Installation
npm i encryption_api-pkg
Delcaration
const encryption_api_pkg = require('encryption_api-pkg');
Get Api
const encryption_api_pkg = require("encryption_api-pkg");
const api = new encryption_api_pkg();
Functions
encrypt() // To encrypt string text
decrypt(); // To decrypt string text
Demo
const encryption_api_pkg = require("encryption_api-pkg");
const api = new encryption_api_pkg();
let Text = "Hello World";
let Key = "ImAlex";
let encrypt_text = api.encrypt(Text, Key);
console.log(encrypt_text);
let decrypt_text = api.decrypt(encrypt_text,key);
console.log(encrypt_text);