Accéder au contenu principal

Generate your gpg key NOW!!!

Hello guys, This is Shadowblade and in this article i'm gonna showcase how i generated my gpg key and encrypted a paragraph with a gpg key.

GPG stands for Gnu Privacy Guard and is a public key cryptography implementation. To create one, you need to have the gnupg program.
To install it just type:
$ sudo dnf install gnupg2
Now generate a key with:
$ gpg --gen-key
Answer the questions and there you have your key.

To view your key type:
 $ gpg --list-secret-keys
Now, in my case i imported a gpg key from a source i won't say (for privacy reasons)
and named it mykey.gpg (i know that it's a name without any inspiration) then ran:
$ gpg --import mykey.gpg
Then created a file named myfile.txt(yet another name without inspiration) and to encrypt it i ran:
$ gpg --output myfile.txt.gpg --encrypt --recipient <email_of_the_source_owner>  myfile.txt
This will create a file named myfile.txt.gpg which contains the encrypted version of myfile.txt, only the owner of the private key can decript it.
useful links:- https://www.digitalocean.com/community/tutorials/how-to-use-gpg-to-encrypt-and-sign-messages
             - https://www.howtogeek.com/427982/how-to-encrypt-and-decrypt-files-with-gpg-on-linux/
That's it folks, have a happy new year

Commentaires

Posts les plus consultés de ce blog

second and third day

The second day was a very tiresome and exciting day,just after i came out of school, i immediately got to the computer to see if my mentor had approved of my work; and then he told me to add some improvements to my code, i did it and then submitted it; some hours later(maybe 3 or 4 hours) i received the message i wanted to see in my dashboard, my very first task had been approved, i felt like getting out and shouting to the whole neighborhood that i did it but i refrained myself and started to carefully search for my second task, this one was a lot more complicated but so much rewarding and satisfying the time duration was 5 days but i didn't have 5 days, i had to do it faster because i had a math exam in the next 3 days, i really did gave my all and completed this task in 21 hours, the feedback was amazing, my mentor told me that  my work was amazing. Now here am i starting to do my third task

First Day

I just made my first task at Code-in. It hasn't been approved but i hope it will. Well,my first impressions are mitigated, i was super excited to start but when i started i started withia full stop when the revision of the code i wrote came down and my mentor told me that i had a bug on my code, it was late in the night(i think 10:00 11:00pm) but  and i had to sleep because i had class the next morning at 5:00 am, so i gave it up and promised myself to come back to my code the next day and fix it, i have done that and for confidentiality purposes i won't say anything about the task or upload any code but i may post some little code(only for education purposes) or some Linux hints.  P.S: i am waiting for my tutor to correct my bug fixes so be tuned 👊👋