- I have an RSA encrypted message (bytes)
- I want to make a string:
f'!e {encrypted_message}' - Then I need to encode it so I can send it through socket
I try to decode my message so I can put it in a string, but instead I get this:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc4.
How do I put my message (bytes object) in a string?
str... but why move to a string if you are just going to encode it? Why notb'!e ' + message?