The simplest of easy-to-use encryption algorithms is XOR cipher.
You can implement it easily like this:
def xor_key(text_b: bytes, key: bytes):
return bytes(c ^ key[i % len(key)] for i, c in enumerate(text_b))
OBFUSCATION_KEY = b'xu6Dl32mcd02vs1dv' # Any long random string.
s = "Hello world"
obfuscated = b'0\x10Z(\x03\x13E\x02\x11\x08T'
print(xor_key(s.encode(), OBFUSCATION_KEY))
print(xor_key(obfuscated, OBFUSCATION_KEY).decode("utf-8"))
# Prints:
# b'0\x10Z(\x03\x13E\x02\x11\x08T'
# Hello world
Thus you can keep b'0\x10Z(\x03\x13E\x02\x11\x08T'
as literal in your code, and use xor_key(obfuscated, OBFUSCATION_KEY).decode("utf-8")
when you need the "Hello world"
literal. It's quite easy to break, but for many non-commercial cases (or for MVP versions of the product) even this might be enough.
There are some more sophisticated (but still easy to use) solutions, like this (and at the end of writing my answer I found this splendid answer). But a more detailed answer depends on what exactly do you need from this encryption (or maybe even hashing) algorithm.