1.0.2 • Published 5 years ago

encryptionjs v1.0.2

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

Encryptionjs Documentation

An easy way to encrypt data and get its key.You can use it to encrypt users data.

npm  i  encryptionjs

There are 3 thing for which you can use ilurl =>

NAMEMEANING
EncryptIt is used to encrypt the data and produce two things : {encrypted data,Key}.
DecryptIt is used to decrypt data you have to provide the data and its key.
ReencryptIt is used to encrypt the data but with a key that you have already.

Encrypt

In cryptography, encryption is the process of encoding information. This process converts the original representation of the information, known as plaintext, into an alternative form known as ciphertext. Ideally, only authorized parties can decipher a ciphertext back to plaintext and access the original information.

code :

var  enc = require("encryptionjs");

var  text = "Hello World!!";

console.log(enc.encrypt(text));

Decrypt

Most web browsers display the URL of a web page above the page in an address bar. A typical URL could have the form http://www.example.com/index.html , which indicates a protocol ( http ), a hostname ( www.example.com ), and a file name ( index. html ).

code :

var  enc = require("encryptionjs");

var  data = "0133674829746340";

var key = "0102030405175683574692847563598374584637463756374658"

console.log(enc.decrypt(data,key));

Reencrypt

It is used to encrypt some data with the key you have previously.

code :

var  enc = require("encryptionjs");

var  text = "Hello World!!";

var key = "0102030405175683574692847563598374584637463756374658";

console.log(enc.reencrypt(text,key));

GitHub Profile Of ilurl

-- created by Mridul

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago