r/GPGpractice • u/NekroReaper74 • Mar 11 '23
Help Needed OpenKeychain android help?
So, i apparently learned how to encrypt...i need to get a users public key, then import and write my message and send it - i ubderstnad that so far...but...when i try to decrypt a message it tells me "no valid pgp encrypted or signed data found!" And im copying the whole thing with the fences around the begin and end pgp phrases. I dont understand? Ive seen some say you need the others private key - BUT then ithers say rhats stupid and all youd need is their public key. But when how are people on here just sending messages of the decrypted text and others are avle to open it without the senders public key?!
Im sorry...this is confusing and i been trying to figure it out for 4 hours now.
If you can understand, please guide me...
1
u/Nakamoto-Bad1437 Aug 31 '26
Mano fala contigo que eu te ajudo, entra no meu grupo no WhatsApp que depois de aprovado você se apresenta, diz que é o rapaz do Reddit que precisa de ajuda com as " Chaves Públicas" e as "Chaves Privadas" ok 🔐⭐⭐⭐⭐⭐
1
2
u/jr93_93 E61F 4C97 5141 9EF2 E7F7 E5BC 3BFF CEC3 F6F2 128C Mar 11 '23 edited Mar 11 '23
Hello, bro.
What you need is the public key of the one you want to send an encrypted file
gpg --import pubkey.gpg, Then check that the public key has been importedgpg --list-public-keys.Now create an encrypted file for the recipient gpg -ea -r ID, name or email (you can use Tab and it will enlist all the public keys) Filename.txt that will result in a file with the same name Filename.txt.asc.
-e: is the same as--encrypt-a: is the same as--armor(generates an ASCII file)Optional: You can use the
-oor--outputoption to generate an output file with a different name, the command would begpg -eao filename_output.txt -r ID Filename_input.txt.In order for someone to send you an encrypted file, you must share your public key, you have several options:
Copy and paste the result from your public key, in
gpg --output public.gpg --armor --export user. In Linux you can use xclip to copy the result to the clipboardcat public.gpg | xclip -sel c.option two: upload your public key to a keyserver https://keys.openpgp.org/about/usage, unpload your pubkey
gpg --keyserver keys.openpgp.org --send-keys your-ID.Import my pubkey
gpg --keyserver hkps://keys.openpgp.org --recv-keys 4000A50A5AD73C5F723933003E6FE09FC53A3E70and share your pubkey to practice.In the case of an app, you must have the public key file on your phone and then import it into the app https://i.imgur.com/bupEIGp.jpg.