I
I
Igor Samokhin2016-11-10 12:14:43
PHP
Igor Samokhin, 2016-11-10 12:14:43

How to make encrypted chat in php?

Hello,
I was thinking of encrypting user messages using the account password as a key. But what if I have 10 users in the chat?
Messages stored in the database must be encrypted. Messages cannot be stored in clear text.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lubezniy, 2016-11-10
@grigor007

This means that you need to encrypt the data with the key of each user in the group (or chat, if the group is one common) and send the encrypted message to him. Or decrypt it on the server, encrypt it with the keys of other participants and send it. There is no third.

F
Fadi Haj, 2016-11-10
@fdhaj

If we are talking about encryption in group chats, then I advise you to look in this direction .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question