Hi,
I know I can encrypt a string using a password with sjcl.encrypt() and decrypt using sjcl.decrypt(), but can I just verify the password to decrypt a string is correct first so then if it is correct, I can go ahead and decrypt and if it's not, I go ahead and spit out an error message?
Thanks.
Hey guys, I'll need to save some sensitive data on client side in localstorage.
I've been wondering what's the best I can do about that and sjcl seems to be a good idea.
I know there's no perfect security, I just want to do the best possible :)
That said, is sjcl.encrypt enough? Is there a better configuration to make it harder to brute force or find with other ways?
Hi all,
I use this function to generate a key "AES-GCM" and how I can generate the same algorithm with the sjcl ?
const generateKey = async () => {
const key = await window.crypto.subtle.generateKey({ name: "AES-GCM", length: 128 }, true, ["encrypt", "decrypt"]);
const key_exported = await window.crypto.subtle.exportKey("jwk", key);
return key_exported.k;
};