We are planning to make a dapp in which we receive the encrypted hash of a file stored on ipfs. We need to decrypt it using our private key stored on the local computer. Is it safe to enter our private key in the front end part of the dapp and put the decrypting logic in the react ?
For the public key ,can we use the ethereum account's public key and decrypt it using the respective private key?
Also safer methods for storing private keys will be helpful