Lightning Terminal uses Lightning Node Connect to establish an end-to-end encrypted connection between your browser and your node.
Lightning Node Connect is a new mechanism to smoothly establish a connection to your Lightning node, even if it is behind Tor or a NAT. Lightning Node Connect is an open source tool that allows for an end-to-end encrypted connection between an application and a node.