The functions sjcl.json.encrypt and sjcl.json.decrypt deal with serialised JSON, however for my use case I would like to store the encrypted data and metadata (iter, ks, etc.) separately, which is much easier if dealing with Javascript objects.
Also I see that the lib is using a custom encode/decode which I guess is slower than a built-in JSON.stringify/JSON.parse?
There are _encrypt and _decrypt functions in convenience.js, which deal with objects but unfortunately they are not in the build.
Is there any other way to achieve the above? Basically encrypting/decrypting objects directly?
The functions
sjcl.json.encrypt
andsjcl.json.decrypt
deal with serialised JSON, however for my use case I would like to store the encrypted data and metadata (iter, ks, etc.) separately, which is much easier if dealing with Javascript objects.Also I see that the lib is using a custom encode/decode which I guess is slower than a built-in JSON.stringify/JSON.parse?
There are _encrypt and _decrypt functions in convenience.js, which deal with objects but unfortunately they are not in the build.
Is there any other way to achieve the above? Basically encrypting/decrypting objects directly?