Class to crypt and decrypt text