Skip to content

sbamniya/Object-Encryption-In-Javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)