first file encryption methods