import random
with open("f:/hello.txt", encoding='utf-8') as f:
char = f.read(1)
newf = open('f:/hello_encoding.txt','w')
while char:
char = chr(ord(char)+random.randint(1, 9))
newf.write(char)
char = f.read(1)
newf.close()