MetaMask Encrypt/Decrypt

How to
Get Public Key
Encrypt
Decrypt
Shared Messages

The project is open-source and can be found in GitHub.

MetaMask APIs have certain mobile limitations, for this reason these functions can only be used on the desktop version.

It works with asymmetric cryptography to encrypt and decrypt messages.

Encryption is a feature of asymmetric cryptography that allows us to share PRIVATE messages between known parties.

Private messages, in this context, are messages no one else than the recipient should see.

If I want to send a private message to a friend, and only for him to see that message, then I will encrypt it with his public key, and he will be able to decrypt it with his private key.

The process goes as follows:

1. Purple shares her public key with Green.

2. Green encrypts a message with Purple's public key.

3. Green sends the encrypted message to Purple.

4. Purple uses her private key to decrypt Green's message.

Asymmetric cryptography explained graphically!

This process is only used to share information that should not be public (it is masked behind an encryption), and no one but the person who has the message and then one that received the message can see it otherwise.

This app does not have access to your private key, and will interact with your wallet provider for the decryption of the messages.

This project was built by developers to contribute to the amazing web3 community with no direct affiliation with https://metamask.io/. If you found this helpful in any way, feel free to share the ❤️.


ETH: 0xFd072083887bFcF8aEb8F37991c11c7743113374