Fix encryption methods