title: Encrypting and Decryption Local storage values
body: <p>In Angular, How to encrypt a value and store it in Local Storage and then Retrieve and Decrypt it.</p>
  
  <p><strong>Example</strong></p>
  
  <pre><code>    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 
  </code></pre>
  
  <p>Which is the best way and how?</p>