This is great! I was just writing localStorage support into a project last night and considering adding an encryption layer to it. Looks like I won't have to do that myself now, thanks!
Hi Hunters,
secure-ls helps in securing localStorage data with high level of encryption and data compression.
Some notable features:
1. Secure data with various types of encryption including AES, DES, Rabbit and RC4. (defaults to Base64 encoding). Secret-key, if not custom, is also secured using PBKDF2.
2. Compress data before storing it to localStorage to save extra bytes (defaults to true).
3. Advanced API wrapper over localStorage API, providing other basic utilities.
4. Save data in multiple keys inside localStorage and secure-ls will always remember it's creation.
@chinchang457 I agree that it's not completely secured and nothing can be fully secured if it's entirely on client side. But yes the secret key is 33 chars long, generated using PBKDF2 password key function. User will have to dig a little deeper to find it as it's not present in the source code directly.