i know we have asymmetric cryptography extension for end-to-end app encryption, but how can we do it ya if based on the concept of chat app from @vknow360How to use chatview with firebase?
any example i can refer with?
thank you very much
I wanted to understand if the issue is in the data you’re passing to the function.
Try inserting both values manually string and publicKey, and make sure the message gets added to the chat.
But I’m starting to wonder…
How are you using the public and private keys? Do you fully understand how they work?
Each user generates a public and a private key.
The two users who want to exchange a message need to swap their public keys:
user1 sends their public key to user2
and user2 sends theirs to user1
This way, each one encrypts the message with the other’s public key and decrypts it with their own private key.