Your code changes 'ABC' --> 'BBC' --> 'CCC' --> 'DDD' and so on.
In reply to That doesn't work. by kbrint in thread simple letter substitution according to hash by DavidC