WalletConnect utilizes end-to-end encryption and QR code scanning to establish a secure connection between a user's wallet and a dApp. Users scan a QR code provided by the dApp with their wallet app, which then establishes a peer-to-peer connection, enabling seamless interaction.