Jump to content

How to encrypt a single text file using VIM/GVIM


Recommended Posts

securitybreach
Posted

I used to  use this years ago but forgot about it until someone on diaspora reposted the steps:

 

How to encrypt a single text file using VIM/GVIM

 

    :set cm=blowfish2
    :X
    enter your password or -phrase twice; longer is better; 10 words+ excellent!
    optional: write passphrase down hard copy and put in wallet
    enter text as usual; then ESC to exit insert mode
    :w (/path/to)/FILENAME.TXT
    :q


When you open the file again, VIM will ask your passphrase first, then you edit again as usual. Done!

 

https://joindiaspora.com/people/83d7f790eec80131af1952540061b601

  • Thanks 1
Posted

That's pretty slick.  I haven't used vi, vim or gvim much so I always have to look up the function keys......

securitybreach
Posted

I use vim daily but have to look up advanced options.

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...