I am using the email/password sign in method for Firebase. I would like to encrypt the data users save into the realtime database before sending it to the database. Firebase already handle the user password, but can I somehow use it to encrypt data which can't be decrypted by me only the client? It would be nice if I could achieve it with the client sdk.
So my flow would be something like this:
You can easily do that the following way:
(vice versa for A to X)
If A want's to move to another phone or wants to use multiple phones you can do this that way: