Analysis of the Role of Cryptography in Network Security