Skip to content

Object-Encryption-In-Javascript

Latest
Compare
Choose a tag to compare
@sbamniya sbamniya released this 02 May 13:24

Object-Encryption-In-Javascript

The project shows how to directly encode object without converting it to string, this is written in plain Javascript, no any other file required and it is not dependent of anything.
You can download this and check that how to use this methods.

to clone this project simply run:

git clone https://github.com/sbamniya/Object-Encryption-In-Javascript.git

Optionally you can also download Zip of the same.

Add ObjectBase64.js file to your project.

It's pretty simple.

Encrypt Object

After adding the required file all you need to do is call the encryption function, like below:

var encryptedObj = ObjEncrypt(Object)

Decrypt Object

After adding the required file all you need to do is call the decryption function, like below:

var decryptedObj = ObjDecrypt(encryptedObj)