Hello!

I don't see any way to encrypt/decrypt strings in the vim function 
library, but there is a way to encrypt a file buffer.  Netrw tries to 
make use of ftp, etc and its associated passwords simpler by retaining 
the password in a variable (which is not normally saved).  Thus one 
reads a file via ftp, say, provides the password to do so, and writing 
is done without requiring another entry of the password.  I thought 
about making a temporary "password" automatically using localtime() at 
first invocation of netrw and the process's pid.  Any good way to get 
the vim process's pid?  How about under Windows?

Anyway, the encryption/decryption via :X isn't helpful for this effort, 
it appears.  That's because:  a) it requires user intervention (ie. a 
password to protect a password), b) the buffer is left unchanged, so I 
can't use it, c)  I can't write the buffer to a temporary file and read 
it back in its encrypted form (I tried setting ei=all first, but that 
doesn't do it).

Oh, well...
Chip Campbell


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui