About: AES256 encryption in Vim   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

Create a second config file named ~/.cvimrc containing: set secure set viminfo= set noswapfile set nobackup set nowritebackup set history=0 set noshelltemp function Scramble() %!base64 -e | aespipe -e aes256 -T | base64 -e endfunction function Unscramble() %!base64 -d | aespipe -e aes256 -d | base64 -d endfunction map :call Scramble() map :call Unscramble() Create a shell script named cvim (copy it to /usr/bin) containing: #!/bin/sh vim -S $HOME/.cvimrc "$@" Make the new script executable (do this as root, or use ~/bin/ instead of /usr/bin): $ chmod 750 /usr/bin/cvim

AttributesValues
rdfs:label
  • AES256 encryption in Vim
rdfs:comment
  • Create a second config file named ~/.cvimrc containing: set secure set viminfo= set noswapfile set nobackup set nowritebackup set history=0 set noshelltemp function Scramble() %!base64 -e | aespipe -e aes256 -T | base64 -e endfunction function Unscramble() %!base64 -d | aespipe -e aes256 -d | base64 -d endfunction map :call Scramble() map :call Unscramble() Create a shell script named cvim (copy it to /usr/bin) containing: #!/bin/sh vim -S $HOME/.cvimrc "$@" Make the new script executable (do this as root, or use ~/bin/ instead of /usr/bin): $ chmod 750 /usr/bin/cvim
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1249(xsd:integer)
Text
  • openssl
Author
  • fomit
Complexity
  • intermediate
Created
  • 2006(xsd:integer)
ID
  • 1251(xsd:integer)
  • 2012(xsd:integer)
NEXT
  • 1259(xsd:integer)
Rating
  • 13(xsd:integer)
abstract
  • Create a second config file named ~/.cvimrc containing: set secure set viminfo= set noswapfile set nobackup set nowritebackup set history=0 set noshelltemp function Scramble() %!base64 -e | aespipe -e aes256 -T | base64 -e endfunction function Unscramble() %!base64 -d | aespipe -e aes256 -d | base64 -d endfunction map :call Scramble() map :call Unscramble() Create a shell script named cvim (copy it to /usr/bin) containing: #!/bin/sh vim -S $HOME/.cvimrc "$@" Make the new script executable (do this as root, or use ~/bin/ instead of /usr/bin): $ chmod 750 /usr/bin/cvim Now you can edit a file with: $ cvim new_textfile Type in whatever you like. Press F7 key and type password twice. Then the contents of the file will be encrypted. To decrypt, press F8 and type password again. Never save the file while you can see the plain text. Before saving (:w) you should encrypt it first, otherwise there will be traces of the plaintext file on your hard disk.
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software