As the name suggests that network consist of large number of devices connected with each other for transferring the data and network security deals with the security about network means securely transferring the data on network. Network security deals with large number of devices to provide them secure access. Earlier static ID and Password are used which is vulnerable against eavesdropping and replay attack. To overcome this problem One Time Password (OTP) technique is used which give different password each time. Earlier OTP is HOTP which is based on one way hash function SHA-1 and Ping Pong-128 stream cipher. In this paper, the authors propose a method of generating OTP by using Genetic Algorithm (GA) with Elliptic Curve Cryptography (ECC).