Network security with encryption and decryption technology to complete the application layer, but this technology will bring computing resources and a waste of energy, particularly in these two resources are limited wireless communication system for this problem, we use a large-scale multi-antenna technology, using beamforming algorithm in power and spectrum limited conditions, to maximize the mutual information system security, the simulation results demonstrate the ability to secure transmission algorithms can effectively improve the system.