So I am trying to output an encrypted message given by the user to a text file. For example, if the user writes \'Hello\', the code gets encrypted by a random number from 1 to 2