Answer the question
In order to leave comments, you need to log in
How to send an encrypted message?
I am using the RSA library. An example program from the Internet:
import rsa
(pubkey, privkey) = rsa.newkeys(512)
message = b'Hello Blablacode.ru!'
# шифруем
crypto = rsa.encrypt(message, pubkey)
print(crypto)
print(type(crypto))
# расшифровываем
message = rsa.decrypt(crypto, privkey)
print(message)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question