I am to practice for a code that can encrypt words. Like... I am given this meanlingless word and must convert it into a word with meaning by changing its letters and such. Anybody know how that really works and show me an example of the code please?
It really depends on the encryption method. By the way, taking nonsense and producing a meaningful word is probably decryption.
There are dozens (if not, more) of encryption methods out there, from the simple (adding a constant number to each letter) to the more complex (adding a certain value from a list that cycles for every letter) to even more absurdly complex methods. You need to decide which method to use before you can start coding.