N
N
Nikita Evdokimov2018-05-31 13:26:03
Java
Nikita Evdokimov, 2018-05-31 13:26:03

My implementation of RSA does not work with Cyrillic. How to fix?

For the tutorial project, you need to implement a client-server system with message encryption. The client, using the public key received from the server, encrypts the message and transmits it. The server decrypts it. With Latin, everything works as it should, but if I send a message in Cyrillic, then it is decoded incorrectly. I am using BufferedReader/BufferedWriter for socket work. When creating their objects, I specified the utf-8 encoding, it did not help.
https://github.com/Nikitae57/os_rsa

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question