encrypt-webstorage
import {WebStorageService} from "encrypt-webstorage";
constructor(private webStorage : WebStorageService){}
// setting the value in session storage
this.webStorage.setItem('test','test'); // U2FsdGVkX1+cLZpklSZLV2mptR9S/px4TtOMBjIeOUU=
this.webStorage.setItem('test',10);
this.webStorage.setItem('test',{"test" : "test"});
// can able to pass all the types code will handle stringify and parse
// get the value back from session
this.webStorage.setItem('test'); //test