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.....

1 Answer 1


There is no such functionality in web3js (yet), but this answer ( Encrypt data using public key ) may help if you are looking for some way to do it, apart from web3js

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.