Today, building a secure channel is one of the most challenging areas of research and development in modern communication. Cryptography enables the two parties to communicate over an insecure channel so that an attacker cannot understand and decrypt the original message. Public key cryptography is available in many forms but it requires huge time consumption, complexity and large computational power. An Artificial Neural Network (ANN) can be the best way to overcome these problems. The connection between an artificial neural networks and cryptography is providing a great help for the security concerns.