Abstract:The article focuses on VPND program code. The key exchange techniques and encrypted (decrypted) method with Blowfish encryption algorithm in virtual private network implement are introduced. The architecture, flowchart and algorithm are discussed in detail. This solutions can securely interconnect networks at different places with internet instead of leased lines, which is a good solution to enterprises distributed around the world.