Created encrypt function. Pretty much done.