M
M
my lord2021-01-19 04:14:18
PHP
my lord, 2021-01-19 04:14:18

How does message encryption work?

Hello! Interested in such a question, how is the encryption of messages in chats?

When adding a message to the database, is it encrypted by type like a password and then displayed with decryption? Right?

And please tell me how best to encrypt and decrypt messages?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
SagePtr, 2021-01-19
@SagePtr

Depending on what specific chats, in 99.9% of chats - no way. The only encryption that is present is by means of SSL between the client and the server.

E
Evgeny Plotnikov, 2021-01-19
@evgenx

To encrypt any data, you can use a public key system. A good implementation is RSA. https://ru.wikipedia.org/wiki/RSA

X
xmoonlight, 2021-01-19
@xmoonlight

And please tell me how best to encrypt and decrypt messages?
1. By replacing characters with groups of characters. Decryption - in reverse order. Recursion is allowed.
2. Exchange of a replacement table via an N-character pin-code (according to a previously known algorithm, the algorithm itself is never transmitted over the network!) - based on RSA or in clear text (plain text).
3. Iteration of the substitution table is strictly required!
This is the easiest way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question