Fix encryptData() to encrypt()