@Dhayden When I run my code, It works without errors. Anyway, my program doesn't actually encrypt the code anyway, which is why I posted this. I want a simple way to encrypt, and possible decrypt the text.
There are plenty of easy-to-implement, not-too-complex encryption algorithms out there. Maybe you should look for them instead of saying "Hey guys! Can you google this for me?"