encryption with vim

43 ogledov
Preskoči na prvo neprebrano sporočilo

Mathieu Roux

neprebran,
17. jun. 2019, 05:00:0117. 6. 19
do vim...@googlegroups.com
Hello,

I use encryption with vim.
I just do :X
and then i write 2 times my password.
After my file is crypted.

1) What about now, if i want to cancel encryption (i don't want
password anymore).
If i try set key=
it does not work: again the same password when i open vim again.

2) And what about now if i want to change password?
If i do :X in the open file, and enter 2 times my new password, it is
the same... when i close the file and open it again, only the old
password is ok.

Best regards,
Mathieu

Paul

neprebran,
17. jun. 2019, 14:32:5917. 6. 19
do vim...@googlegroups.com
Yank and paste to a new buffer/file?
signature.asc

Bram Moolenaar

neprebran,
17. jun. 2019, 14:38:4717. 6. 19
do vim...@googlegroups.com, Mathieu Roux

Mathieu Roux wrote:

> I use encryption with vim.
> I just do :X
> and then i write 2 times my password.
> After my file is crypted.
>
> 1) What about now, if i want to cancel encryption (i don't want
> password anymore).
> If i try set key=
> it does not work: again the same password when i open vim again.

You need to write the file:
:set key=
:write

> 2) And what about now if i want to change password?
> If i do :X in the open file, and enter 2 times my new password, it is
> the same... when i close the file and open it again, only the old
> password is ok.

Sounds like you are missing the write here as well.

--
hundred-and-one symptoms of being an internet addict:
216. Your pet rock leaves home.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Mathieu Roux

neprebran,
17. jun. 2019, 14:52:1717. 6. 19
do Bram Moolenaar, vim...@googlegroups.com
hmmmm it was so simple in fact...

Thank you very much!
Odgovori vsem
Odgovori avtorju
Posreduj
0 novih sporočil