Tools to EncryptDecrypt and Password Protect Files in Linux.Encryption is the process of encoding files in such a way that only those who are authorized can access it.Hook-Folder-Lock-command-prompt.jpg' alt='Encrypt Files Command Line Windows 10' title='Encrypt Files Command Line Windows 10' />Mankind is using encryption from ages even when computers were not in existence. World Of Warcraft Authentication Key Keygen Music there. During war they would pass some kind of message that only their tribe or those who are concerned were able to understand.Linux distribution provides a few standard encryptiondecryption tools that can prove to be handy at times.Here in this article we have covered 7 such tools with proper standard examples, which will help you to encrypt, decrypt and password protect your files.If you are interested in knowing how to generate Random password in Linux as well as creating random password you may like to visit the below link GenerateEncryptDecrypt Random Passwords in Linux.Gnu. PGGnu. PG stands for GNU Privacy Guard and is often called as GPG which is a collection of cryptographic software.Written by GNU Project in C programming Language.Replace-or-Skip-Files-2017-07-30-22_12_56-1.png' alt='Encrypt Files Command Line Windows 10' title='Encrypt Files Command Line Windows 10' />Latest stable release is 2.In most of the todays Linux distributions, the gnupg package comes by default, if in case its not installed you may apt or yum it from repository.We have a text file tecmint.DesktopTecmint, which will be used in the examples that follows this article.Before moving further, check the content of the text file.DesktopTecminttecmint.Now encrypt tecmint.As soon as you run the gpc command with option c encryption only with symmetric cipher it will create a file texmint.You may list the content of the directory to verify.DesktopTecminttecmint.DesktopTecmint. Note Enter Paraphrase twice to encrypt the given file.The above encryption was done with CAST5 encryption algorithm automatically.You may specify a different algorithm optionally.At the command prompt.If the system says Bad command or file name, then you dont have GPG and you must install it.To install GPG on your computer, first.If you dont want to encrypt your files with a publicprivate key pair and use just symmetric encryption with a pass phrase instead, use the following command.Command Prompt is command line interpreter of Windows operating systems.An A to Z list of Windows CMD Commands includes both internal and external commands.To see all the encryption algorithm present you may fire.Now, if you want to decrypt the above encrypted file, you may use the following command, but before we start decrypting we will first remove the original file i.DesktopTecminttecmint.Encrypt Files Command Line Windows 10' title='Encrypt Files Command Line Windows 10' />DesktopTecminttecmint.Note You need to provide the same password you gave at encryption to decrypt when prompted.Blowfish cipher. Blowfish cipher is not recommended since the time it was figured that the cipher algorithm can be attacked.If you have not installed bcrypt, you may apt or yum the required package.Encrypt the file using bcrypt.DesktopTecminttecmint.As soon as you fire the above command, a new file name texmint.Decrypt the file using bcrypt.Note bcrypt do not has a secure form of encryption and hence its support has been disabled at least on Debian Jessie.Designed as a replacement of UNIX crypt, ccrypt is an utility for files and streams encryption and decryption.It uses Rijndael cypher.If you have not installed ccrypt you may apt or yum it.Encrypt a file using ccrypt.It uses ccencrypt to encrypt and ccdecrypt to decrypt.It is important to notice that at encryption, the original file tecmint.You may like to use ls command to check this.Encrypt a file. ccencrypt DesktopTecminttecmint.Decrypt a file. ccdecrypt DesktopTecminttecmint.Provide the same password you gave during encryption to decrypt.Zip. It is one of the most famous archive format and it is so much famous that we generally call archive files as zip files in day to day communication.It uses pkzip stream cipher algorithm.If you have not installed zip you may like to apt or yum it.Create a encrypted zip file several files grouped together using zip password mypassword tecmint.Here mypassword is the password used to encrypt it.A archive is created with the name tecmint.Decrypt the password protected zipped file using un unzip tecmint.You need to provide the same password you provided at encryption.Openssl. Openssl is a command line cryptographic toolkit which can be used to encrypt message as well as files.You may like to install openssl, if it is not already installed.Encrypt a file using openssl encryption.DesktopTecminttecmint.DesktopTecminttecmint.Explanation of each option used in the above command.Decrypt a file using openssl.DesktopTecminttecmint.DesktopTecminttecmint.The very famous open source 7 zip archiver written in C and able to compress and uncompress most of the known archive file format.If you have not installed 7 zip you may like to apt or yum it.Compress files into zip using 7 zip and encrypt it.AES2. Decompress encrypted zip file using 7 7za e tecmint.Note Provide same password throughout in encryption and decryption process when prompted.All the tools we have used till now are command based.There is a GUI based encryption tool provided by nautilus, which will help you to encryptdecrypt files using Graphical interface.Nautilus Encryption Utility.Steps to encrypt files in GUI using Nautilus encryption utility.Encryption of file in GUI1.Right click the file you want to encrypt.Select format to zip and provide location to save.Provide password to encrypt as well.Encrypt File Using Nautilus.Notice the message encrypted zip created successfully.Encrypted Zip File Confirmation.Decryption of file in GUI1.Try opening the zip in GUI.Notice the LOCK ICON next to file.It will prompt for password, Enter it.Decryption of File.When successful, it will open the file for you.Decryption Confirmation.Thats all for now.Ill be here again with another interesting topic.Till then stay tuned and connected to Tecmint.Dont forget to provide us with your valuable feedback in the comments below.Like and share us and help us get spread.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |