In this tutorial, you will get to know the easiest method to encrypt a file. it can any type of file such as .php,.jpeg, .png, .mp4, .avi, etc.

For this tutorial, I will use a very famous tool GPG. it comes pre-installed in many Linux distribution.

but here, I am using Kali Linux.

GPG tool has very deep functions. but we will not go that deep today. if you want me to cover more on this tool, comment down.

Steps

open your terminal and type :

gpg --help

you will be able to see a lot of options. but as I said we will not go so deep.

for example, I can take an image file to encrypt. we will encrypt it in the symmetric cipher algorithm.

type this command to encrypt a file:

gpg -c <filename>

then it will ask you for a password. just type and confirm it. And you will have an encrypted file that can be decrypted with the same password.

now, to decrypt it, type this command:

gpg -d <filename>

 

and that’s it. now, you know the things.

well, do you know that these encrypted files can be decrypted without password?

the symmetric cipher algorithm uses 56-bit keys. let me honest with you. I have never cracked it before. so, I have not much idea about it. but the thing is that the more bit takes more time to crack.

I have heard that once, a 56-bit took 52 hours to crack. you can research it on google.

 

 

Thanks For Visiting.

LEAVE A REPLY

Please enter your comment!
Please enter your name here