How to store private keys securely in local storage?