Abstract:This article elaborates the basic principle of digital signature, and discusses how to use this technology to ensure the integrity, authenticity and non-deny in the file transfer system of electronic military affairs. Finally, this article gives a model of file transfer system based on the digital signature technology, and makes it realized based on J2EE platform by using Java2 security system. This digital signature ensures the integrity and confidentiality to the file.