added encrypt and decrypt classes