The sixth generation (6G) of mobile networks is poised to revolutionize communication capabilities with its infinite-like reach. These networks will feature an ultra-dense topology, accommodating a wide range of devices, from macro devices like satellites to nano-devices integrated within the human body. However, the extensive data traffic handled by 6G networks, a significant portion of which is sensitive in nature, presents a security challenge. This paper presents the design and implementation of an encryption scheme that ensures the confidentiality of data transmission in the physical layer of 6G networks. The proposed physical layer security architecture relies on lattice cryptography, wherein each user is associated with a pair of bases (a public basis and a private basis) and a set of orthogonal sub-carriers. The encryption process involves projecting the vector of the transmitted data’s quadrature amplitude modulation (QAM) symbols onto the user’s public basis. A random error vector is then added before applying the inverse Fourier transform of the orthogonal frequency division multiplexing (OFDM) technique. The security of this encryption scheme hinges on the complexity of the closest vector problem in an integer lattice. To evaluate its efficacy, we analyze the security of our lattice-based physical layer encryption concerning the properties of the base pairs and error vectors. Our findings indicate that the proposed scheme offers satisfactory security protection against eavesdropping attacks by significantly enhancing the confidentiality of the transmitted signal. Furthermore, we assess the performance of our design through numerical experiments, demonstrating its resilience against various security attacks.