Algorithm For Public Key Cryptography Principles