yopines
yopines

Reputation: 59

Converting an encrypted message to string

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'>

Upvotes: 0

Views: 284

Answers (0)

Related Questions