Converting an encrypted message to string

259 Views Asked by At

Here is my encrypted string:

b'pN\xe89\xd8\x83x\x9d\ts\xdb\x91\x87\xb4L\x1bU\xf2\x1fQqL\rz\x8d\xbb\xd0J\x99\xb7\xc0\x8a\x17n@\xdc\x16s\xfaf\x17\x00:\x0f\x86'

How do I convert this into a String that can be written to ConfigParser

later, read this string and convert it back to the correct data type for used for encryption?

encrypted username are of type:<class 'nacl.utils.EncryptedMessage'>
0

There are 0 best solutions below