Added initial encrypt and decrypt methods.