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.
After adding the required file all you need to do is call the encryption function, like below:
var encryptedObj = ObjEncrypt(Object)
After adding the required file all you need to do is call the decryption function, like below:
var decryptedObj = ObjDecrypt(encryptedObj)