Implememented encrypt and decrypt methods.