in reply to I'm amusing myself trying to obfuscate a little script ...
Something that you can read to go further:
HTH