Is my identity exposed when publishing my public key or encrypting with PGP? Let's say I create my PGP keys with my appropriate name and email address.


Will these personal information be exposed if I publish my public key?
When I encrypt a message for sending it to my communication partner, if someone intercepts this encrypted message, will he or she get to know about my personal information?
Yes, your public key includes your UIDs. It may be possible to delete all before exporting though - for sure you could copy the key, add an "anonymous" UID and delete all others.
As long as you're not signing the message, nobody will know who sent the message (but have a look at the mail or other headers!).