Mobile Storage in Angular -
i started work on mobile angular application. there possible way store data encrypted such token, usernames , passwords, , other needed data. cookie , localstorage data can handled 3rd party applications. thanks
cookies can handled if not encrypt data can encrypt , decrypt using ng2-web-cryptography
unique key.
the angular-2-local-storage
library can used store data on mobile side. encryption can provided ng2-web-cryptography
library using enterprise level encryption (aes-cbc, aes-ctr, aes-gcm, rsa-oaep).
to encrypt data in cookie or local-storage using token generated backend.
- https://www.npmjs.com/package/angular-2-local-storage local storage.
- https://www.npmjs.com/package/ng2-web-cryptography encryption.
in below link, can see encryption types , difference. https://diafygi.github.io/webcrypto-examples/
this library supports aes-gcm, ecdsa, hmac, sha-256, sha-384, sha-512, ecdh, pbkdf2, aes-kw, rsa-oaep, aes-ctr, aes-cbc, aes-cfb, rsassa-pkcs1-v1_5, rsa-pss, aes-cmac
Comments
Post a Comment