I'm working with some python code, and I can't seem to figure out how to get a byte representation, and a string variable to work together.
I have:
secret = b'a very secret message'
if I redefine this as:
myrealsecret = 'Hey there this is a real secret'
secret = b+myrealsecret
Why is that? and how can I get whatever value is in myrealsecret
to play nicely with secret
as a byte representation?
Thank you.