1.0.0 • Published 2 years ago

encryption_api-pkg v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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);