Laravel Encryption for protecting private messages
Hi there,
I am working on a messaging/chat system that allows logged in users to send each other private messages. At this point I'm researching how to protect the content of those messages.
But I wonder; is this sufficient for protecting private messages?
I read WhatsApp uses something like "end to end" encryption but it seems to me this is very complicated and I'm having difficulties finding clear information.
end to end means that something in the client browser encrypts and decrypts the messages. Not javascript, probably a web assembly. Plus you need a way to securely pass public and private encryption keys back and forth.
Its not something I would consider building myself as it requires too much domain knowledge
You can use laravel encryption to store the messages in an encrypted form, but it will certainly not be "end to end".
Yeah, I assumed end to end might be a bit too difficult to do.
It's a good question about having the messages searchable. At this point I would say it's not needed but it might be a nice feature to have later on. I've noticed Whatsapp and Facebook Messenger messages are searchable.