Locking VIM files ...-follow up with still more issues

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Locking VIM files ...-follow up with still more issues

Varun Gupta
Hi

Thnx a lot sir for your response. But this requires
setting the password individually for each file . Is
there a way by which , auto encryption works for each
file in the  folder (I just need to specify the
directory).

Also , all the users , in case have logged in the
machine with the same login , can access the encrypted
file.Is there a way by which i can make the
authentication process mandatory, irrespective of who
is logged on ....Even myself ....



Best Regards

Varun


--- Zbigniew Kowalski <[hidden email]> wrote:

> you can encrypt vim files via command :X
> try :help :X for more info
> in such case vim prompts for password
>
> HTH
> zbikow
>
> Dnia 1-06-2005 o godz. 8:43 Varun Gupta napisa?(a):
> > Hi All
> >
> >
> > Is there any wayout by which I can lock specific
> VIM
> > files/folders by a password ....kinda second level
> > security check after user login ???
> >
> >
> > Best Regards
> >
> > Varun
> >
> >
> >
> > __________________________________
> > Discover Yahoo!
> > Have fun online with music videos, cool games, IM
> and more. Check it
> > out!
> > http://discover.yahoo.com/online.html
> >
> Zbigniew Kowalski
> http://strony.wp.pl/wp/zbikow1/ 
>
>
>


               
__________________________________
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
http://mobile.yahoo.com/learn/mail 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Locking VIM files ...-follow up with still more issues

Charles E Campbell Jr
Quoting Varun Gupta <[hidden email]>:

> Thnx a lot sir for your response. But this requires
> setting the password individually for each file . Is
> there a way by which , auto encryption works for each
> file in the  folder (I just need to specify the
> directory).

If you want an action to occur for every file in some
directory, you should use autocmds.  As a related example,
consider ebcdic encoding:

"  editing EBCDIC {{{2
augroup EBCDIC
 au!
 au BufReadPre  */EBCDIC/*  :let g:binkeep= &bin|set bin
 "au BufReadPost */EBCDIC/*  :%!iconv -f EBCDIC-US
 au BufReadPost */EBCDIC/*  :%!dd conv=ascii
 au BufReadPost */EBCDIC/*  :let &bin= g:binkeep|unlet g:binkeep
 "au BufWritePre */EBCDIC/*  :let g:binkeep= &bin|set bin|%!iconv -t EBCDIC-US
 au BufWritePre */EBCDIC/*  :let g:binkeep= &bin|set bin|%!dd conv=ebcdic
 au BufWritePost */EBCDIC/* :let &bin= g:binkeep|unlet g:binkeep
augroup END

This set of commands assumes all files in EBCDIC/ or below are encoded
in ebcdic, but need to be converted to and from ascii for viewing.  Obviously
you can change this to be whatever directory you wish and change the ebcdic
to/from ascii conversion to be encryption/decryption s/w (such as pgp provides).
Pgp is likely to be a stronger encryption than Vim provides, by the way.

Regards,
Chip Campbell

Loading...