How does end-to-end encryption work, and why is it important for maintaining user privacy and data security?