It's very similar to this question: How to decrypt an encrypted message using metamask? who was put one year ago.
As user, I would like to store data safely on the blockchain, data that I want to retrieve easily and decode locally. It seems that such feature was planned on web3.js 1.0 but I did not see anything on it.....