Completed encryption. Need to clean up, modularize, and create decryption function