diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-06-21 06:15:46 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-06-21 06:15:46 +0200 |
commit | a8ffcbbf5d6070380e41b3d0841c3944396a27c0 (patch) | |
tree | b8608922fc9956be229912f1323b0d0a94de526c /runtime/doc/recover.txt | |
parent | 191e0a2bc7cb4787e19aa1f8c6958b47e05d7882 (diff) | |
download | vim-git-a8ffcbbf5d6070380e41b3d0841c3944396a27c0.tar.gz |
Crypt the swapfile.
Diffstat (limited to 'runtime/doc/recover.txt')
-rw-r--r-- | runtime/doc/recover.txt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/runtime/doc/recover.txt b/runtime/doc/recover.txt index fd960eb12..f088c0824 100644 --- a/runtime/doc/recover.txt +++ b/runtime/doc/recover.txt @@ -188,4 +188,43 @@ will continue to get warning messages that the ".swp" file already exists. {Vi: recovers in another way and sends mail if there is something to recover} + +ENCRYPTION AND THE SWAP FILE *:recover-crypt* + +When the text file is encrypted the swap file is encrypted as well. This +makes recovery a bit more complicated. When recovering from a swap file and +encryption has been used, you will be asked to enter one or two crypt keys. + +If the text file does not exist you will only be asked to enter the crypt key +for the swap file. + +If the text file does exist, it may be encrypted in a different way than the +swap file. You will be asked for the crypt key twice: + + Need encryption key for "/tmp/tt" ~ + Enter encryption key: ****** ~ + "/tmp/tt" [crypted] 23200L, 522129C ~ + Using swap file "/tmp/.tt.swp" ~ + Original file "/tmp/tt" ~ + Swap file is encrypted: "/tmp/.tt.swp" ~ + If you entered a new crypt key but did not write the text file, ~ + enter the new crypt key. ~ + If you wrote the text file after changing the crypt key press enter ~ + to use the same key for text file and swap file ~ + Enter encryption key: ~ + +You can be in one of these two situations: + +1. The encryption key was not changed, or after changing the key the text file + was written. You will be prompted for the crypt key twice. The second + time you can simply press Enter. That means the same key is used for the + text file and the swap file. +2. You entered a new encryption key, but did not save the text file. Vim will + then use the new key for the swap file, and the text file will still be + encrypted with the old key. At the second prompt enter the new key. + +Note that after recovery the key of the swap file will be used for the text +file. Thus if you write the text file, you need to use that new key. + + vim:tw=78:ts=8:ft=help:norl: |