Jump to content
securitybreach

How to encrypt a single text file using VIM/GVIM

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...