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

How to Setup fedora-messaging on a local machine to publish and listen messages

Hello, this is shadowblade and i’m up to tell you how i setup fedora-messaging on my local machine. The first step i immediately took was to go to the official fedora-messaging documentation ,here is the link for more info Then, i installed the needed packages which are: -> Fedora messaging python package: $pip install fedora - messaging ->and rabbitmq: $ sudo install rabbitmq - server ( i 'm using a debian based distro for this task) then ran i rabbitmq with: $ systemctl start rabbitmq - server (you might need admin privileges to run this commant, if so, put sudo at the start of the command) I then created a single python script which contains a listener and a publisher. Here is the repo of the source code if you are interested, it contains info about how to launch the script. Additionnal ressources: Asciinema recording of the execution of the listener. Asciinema recording of the execution of the Publisher. screen-shots: That’s it folks, have a go...