LinuxQuestions.org
Review your favorite Linux distribution.
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 03-27-2004, 12:08 PM   #1
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
encryption with Vim (vim -x)


I just discovered the -x option in vim. It seems like a somewhat useful feature, but I'm not sure how secure or versatile it is.
Opening a crypted file in vim prompts me for the password as I expected, and editing seems to work fine...but there are some things about it that I don't understand:

I attempted to view the file in a browser, and was asked if I wanted to download it. Does encrypting create a binary file? If so, would FTP'ing it as text break it?

Doing "cat file" messed up my terminal (ps1 and all input) with some crypted files, but not with others...does this show evidence of a bug, or is it normal?

Is this a Vim-only feature or does it work with Vi as well?

Just how secure is it?

Thanks for any input.
 
Old 04-06-2004, 07:32 AM   #2
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
I tested the function and all signs tell me it is a binary file, so when sending over ftp the binary mode should be used.

I would guess it's a Vim feature.

type :help encryption in vim to get more information.
 
Old 03-07-2007, 09:00 AM   #3
justsimran
Member
 
Registered: Mar 2007
Location: Aus
Distribution: RHEL-4,5,UBUNTU,SUSE,FEDORA-6,7
Posts: 109

Rep: Reputation: 15
Quote:
Originally Posted by ugge
I tested the function and all signs tell me it is a binary file, so when sending over ftp the binary mode should be used.

I would guess it's a Vim feature.

type :help encryption in vim to get more information.

yeh thts right i have minimal installed ,, i also tried with vi but i guess it just works for vim ,, may be because vim is an dvanced feature of vi and vi doesnt contain any encryption features!!!
 
  


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
encryption in vim faezeh Fedora 1 05-06-2005 12:17 PM
VIM help arunsri Linux - Software 8 03-14-2005 02:09 AM
VIM -X Forgot Encryption Password SaTaN Programming 2 09-29-2004 08:41 PM
Vim and C++ Dartelin Programming 4 09-16-2004 09:30 AM
Is there a way in vim to do this ?? purpleburple Linux - Software 6 11-09-2002 11:07 PM

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

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