secure-ls
p/secure-ls
Secure localStorage data with encryption and compression
Varun Malhotra
secure-ls — Secure localStorage data with encryption and compression
Featured
8
•
Replies
Best
Evan Sims
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!
Varun Malhotra
@evansims Cool! Served the purpose of making it :)
Varun Malhotra
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.
Apoorv Saxena
@s0ftvar great API implementation, very well documented as well.
Varun Malhotra
@apoorv_saxena Glad you like it :)
kushagra gour
Neat! Though, how is the encryption secret key secured on the client?
Varun Malhotra
@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.
Umar Ahmad Dhudhaal
i have installted it in angular 8. but how to import it in app.module