In these days, security is necessary for all the applications on the network. Number of mechanisms is used for the purpose of providing the security to many applications. But for the n-tier architecture there is no such type of mechanism is implemented for security till now. N-tier architecture has number of levels or tier, and for each tier security is essential. For providing the security to the data transferred on the network, NTRU algorithm is seen as fast and best algorithm. NTRU is patented and an open source public-key cryptosystem in which lattice-based cryptography system is used for encryption and decryption of files.