qcobjects-docs
Version:
The official app and website for documentation of QCObjects
18 lines (13 loc) • 441 B
Markdown
With \_Crypt you can encode serializable objects by a passphrase
```javascript
var _string = New(_Crypt,{string:'hello world',key:'some encryption md5 key'});
console.log(_string._encrypt());
console.log(_string._decrypt()); // decodes encrypted string to the source
```
```javascript
_Crypt.encrypt('hola mundo','12345678866');
_Crypt.decrypt('nqCelFSiq6Wcpw==','12345678866');
```