I recently tried to understand how PGP works:
I encrypt plaintext with my private key and if I send that encrypted text to others with my public key they can encrypt that with my public key?
I recently tried to understand how PGP works:
I encrypt plaintext with my private key and if I send that encrypted text to others with my public key they can encrypt that with my public key?
What you describe is the process of signing, not encryption.
Alice wants to send Bob a private message. Alice needs Bob's public key for that. She can either ask Bob for it, look at Bob's website, download it from a Keyserver, etc..
Alice takes her message and encrypts it using Bob's public key. She then sends the encrypted message to Bob. Bob decrypts the message with his own private key.
Alice wants to sign a message to that people can guarantee it's from her. She publishes her public key and signs the message using her private key.
Bob sees the message from Alice, but wants to confirm it's really from her. He downloads Alice's public key and verifies that the message corresponds to her public key.
Let say you have a padlock and its key to unlock the padlock. And you distributed the padlocks to someone who wants to send you the messages. When someone wants to send the message, he will lock the message with the padlock that you shared. After locking the message with your padlock, you are the only one who can unlock it because you have a unique key to open the padlock.