close
Warning:
Can't synchronize with repository "(default)" (/usr/svn/silverfile does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
Oct 7, 2009, 9:26:40 PM (13 years ago)
- Author:
-
hank
- Comment:
-
gpg for vim how-to
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v9
|
v10
|
|
17 | 17 | This generates, '''id_dsa''' and '''id_dsa.pub'''. |
18 | 18 | Client(id_dsa) ---ssh--> Host(id_dsa.pub in .ssh/authorized_keys) |
| 19 | |
| 20 | == Using GPG == |
| 21 | We are using symmetric gpg which just requires the use of a |
| 22 | passphrase to encrypt/decrypt files. |
| 23 | |
| 24 | To initially create the gpg file the command is: |
| 25 | {{{ |
| 26 | gpg -c decryptedfile |
| 27 | }}} |
| 28 | |
| 29 | To render decrypted file to STDOUT (note the additional dash): |
| 30 | {{{ |
| 31 | gpg -o - file.gpg |
| 32 | }}} |
| 33 | |
| 34 | '''Using Vim to edit files in place''' |
| 35 | [/browser/trunk/third-party/vim_gnu_plugin/gnupg.vim View plugin] |
| 36 | Note- This vim script is edited slightly to make symmetric encryption |
| 37 | the default. This is done by setting g:GPGPreferSymmetric='''1''' |
| 38 | in the script. |
19 | 39 | |
20 | 40 | === Disk Usage Tools === |