LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-15-2021, 03:57 PM   #1
3rdostridge
LQ Newbie
 
Registered: Nov 2018
Posts: 6

Rep: Reputation: Disabled
Encrypting just a file


How do I encrypt a file with a front end gui maybe. How can I just simply create a file that is encrypted. Basically example could be I download my csv file from my password manager and then I want to encrypt that file to open again? Thank You.
 
Old 12-15-2021, 05:15 PM   #2
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 480

Rep: Reputation: 179Reputation: 179
To encrypt from the command-line do the following (example file is abc.csv). You'll be prompted for a pass phrase. It will create a new file with .gpg appended.
Code:
$ gpg -c --no-symkey-cache abc.csv
Note that the original file is still present after gpg creates the new encrypted file. You'll need to delete that.

The --no-symkey-cache option is used so that gpg doesn't cache your pass phrase. If you don't do this, you can just decrypt the file without using a pass-phrase. Seems strange to me, but that is how it works.


To decrypt (you'll be prompted for a pass phrase)
Code:
$ gpg -d abc.csv.gpg

or if wanting to go to a new file

$ gpg -d -o zztop.csv abc.csv.gpg

Not familiar with a GUI version. Probably a bunch out there though!

Last edited by rclark; 12-15-2021 at 05:33 PM.
 
1 members found this post helpful.
Old 12-15-2021, 10:10 PM   #3
3rdostridge
LQ Newbie
 
Registered: Nov 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
ty very much, Ill presume those are the basics to get going. After reading some of the gpg manual from main website, I can tell this is a big program and much to learn. ty very much
 
Old 12-15-2021, 10:16 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
I fully expect that there's a "GUI front-end" for file encryption somewhere, but I agree that the first thing that you should now do is to fully acquaint yourself with GPG. It offers quite a number of possibilities, including some that you might have not yet considered.

(Also please observe that GPG/PGP® is platform independent. Compatible implementations exist everywhere, and they can all deal with each others' files and certificates.)

Last edited by sundialsvcs; 12-15-2021 at 10:17 PM.
 
Old 12-16-2021, 05:19 AM   #5
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622
Blog Entries: 40

Rep: Reputation: Disabled
Do not fear the man page. It is only big, not frightening, and of enormous quality.
 
Old 12-16-2021, 12:25 PM   #6
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 480

Rep: Reputation: 179Reputation: 179
Quote:
those are the basics to get going.
Yes. I just gave you the 'simple' version to protect a single file. gpg can get as 'complicated' as you want/need .
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Encrypting and decrypting a small file using openssl horacioemilio Programming 6 07-01-2009 06:50 AM
encrypting a compressed file? patcheezy AIX 1 06-11-2009 12:54 AM
Encrypting a file vedanu Programming 11 03-03-2007 01:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration