The public key and private key are a key pair obtained by an algorithm (that is, a public key and a private key), and the one of them is called to the outside world as the public key; the other is reserved by itself, called the private key. The keys obtained through this algorithm can ensure that it is unique worldwide. Is when using this key pair, if you encrypt a section of data with one of the keys, you must decrypt with another key. For example, using public key encryption data must be decrypted by private key. If you use private key encryption, you must also decrypt with the public key, otherwise decryption will not succeed.
The public key is available for everyone, but only the key talent has the key. This is a pair of relationships
The public key and private key are a key pair obtained by an algorithm (that is, a public key and a private key), and the one of them is called to the outside world as the public key; the other is reserved by itself, called the private key. The keys obtained through this algorithm can ensure that it is unique worldwide.
Is when using this key pair, if you encrypt a section of data with one of the keys, you must decrypt with another key. For example, using public key encryption data must be decrypted by private key. If you use private key encryption, you must also decrypt with the public key, otherwise decryption will not succeed.