I want to encrypt my data always before setting to sessionStorage and decrypt after reading form it. Is it possible to override this functions or is there any other solution for this issue.
I don't want to do the encryption and decryption on all codes that I've written before ...
for example:
sessionStorage.setItem('token', 'my token');
in the code above, I want the sessionStorage.setItem function to do the encryption on 'my token'.
I know how to encrypt it but I want to implement it in sessionStorage.setItem function.
any help will be appreciated ...