The public and private keys are paired, and they decrypt each other.
Public key encryption, private key decryption.
Private key digital signature, public key authentication.
RSA algorithm
RSA public Key cryptography was developed by Ron Rivest, Adi Shamirh and Lenadleman (MIT) in 1977; RSA is currently the most influential public-key cryptography algorithm based on a very simple theory of numbers:
It is easy to multiply two large primes, but it is extremely difficult to factorization the product at that time, so it is possible to expose the product as an encryption key.
MD5 algorithm
The fifth version of the Message digest algorithm is a hash function widely used in the field of computer security to provide the integrity protection of the message. MD5 's role is to allow bulk information to be "compressed" into a confidential format before signing a private key with a digital signature software.
Public key and secret key