I've been learning some basics of information security and GPG encryption and it's super intriguing. I wanted to understand vulnerabilities behind an idea that I had.
After we create our public and private key pair with GPG, it's common and known to be okay to post your public key and fingerprint online.
My question revolves around me storing personally encrypted data online eg in my GitHub repo. I'm assuming it's going to be okay but wanted to check with the community since I'm fairly new to this topic.
Assume I have a data file that I encrypted with GPG using my own public key. I now upload the file to GitHub where it can be publicly viewed. I'm assuming this should be secure because no one but myself can decrypt this information with my personal private key. Is that a safe assumption or am I missing something critical here?