Replacing letters with other letters

I am trying to make a simple encryption tool and i was wondering how i could use code to replace text, with somewthing totally different!