in reply to simple letter substitution according to hash
Your code changes 'ABC' --> 'BBC' --> 'CCC' --> 'DDD' and so on.