Answer the question
In order to leave comments, you need to log in
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
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.
To encrypt any data, you can use a public key system. A good implementation is RSA. https://ru.wikipedia.org/wiki/RSA
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question