In Angular, How to encrypt a value and store it in Local Storage and then Retrieve and Decrypt it.
Example
a: Number = 5;
b: Number = 6;
c: Number;
c= a+b;
localStorage.setItem('result', (this.c)); // I wan to encrypt and store it in local storge here
localStorage.getItem('result'); // I want to decrypt and get the value
Which is the best way and how?