LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-08-2017, 06:49 PM   #1
TobyV
LQ Newbie
 
Registered: Apr 2017
Posts: 19

Rep: Reputation: Disabled
How to Password Protect Text Files Using Vim on Linux (or macOS)


Hi!

If you're a vim guy/gal. I read an interesting article on howtogeek.com. You can use vim to encrypt and password protect text files. I used vim for years and I never knew this.

https://www.howtogeek.com/299546/how...inux-or-macos/
 
Old 04-10-2017, 09:35 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,235
Blog Entries: 4

Rep: Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262
Vim is full of surprises like that.

However, note that any encryption of a file, using "only a password," is only trivially-protected at best. It's good enough to shoo-away the casual we eavesdropper are, but watching that's you about it. (However, there is certainly something good to be said for "just that!")

If you need strong protection for any data, you need to use digital-certificate based security using a tool such as GPG. A "mere password" will never do.
 
Old 04-10-2017, 06:53 PM   #3
TobyV
LQ Newbie
 
Registered: Apr 2017
Posts: 19

Original Poster
Rep: Reputation: Disabled
I use both GPG and ccrypt depending on the situation I need. I do agree GPG is better. :-]
 
Old 04-10-2017, 08:10 PM   #4
TobyV
LQ Newbie
 
Registered: Apr 2017
Posts: 19

Original Poster
Rep: Reputation: Disabled
Just wanted to add, I shared this article on this thread in case no one is using GPG or any kind of encryption for their text files. So, It's just a quick way of encrypting your text files if you don't use other tools to do it.

Do read the section on using a stronger encryption in the article. Change the default cipher of zip/pkzip encryption to the more secure blowfish2 cipher. :-]
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Copy protect pdf files without password CVAlkan Linux - Software 5 04-07-2015 11:26 PM
Help!! how to password protect tar and zip files pnmanojshenoy Linux - Newbie 3 07-08-2008 01:18 AM
How do I password protect folders/files? shodekiagari Linux - Software 6 12-04-2004 12:16 PM
password protect zip files xlord Linux - Newbie 3 05-04-2004 12:04 PM
Password protect a text document? PionexUser Linux - Security 2 11-19-2003 02:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:06 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