encrypting an object in javascript
<pre><code>var Obj = {};
Obj.ID = e.row.ID;
Obj.firstName = e.row.firstName;
Obj.lastName = e.row.lastName;
</code></pre>

<p>This is my object, and i save this object in a file. now before saving into file, i want to encrypt it and save and while reading i want to decrypt and read. </p>

<pre><code>var newFile = FileSystemPath;
newFile.write(JSON.stringify(object));
</code></pre>

<ol>
<li>Should i encrypt the object before stringifying it or after it.</li>
<li>What are the ways to encrypt an object in javascript. Any examples
would be great.</li>
</ol>
