Code Monkey home page Code Monkey logo

pdub's Introduction

This is a mirror of http://www.vim.org/scripts/script.php?script_id=3593

Overview
--------

On Github: https://github.com/aaronj1335/pdub

It's dead simple.  Run `pdub`, and you get a blank buffer in vim.  Enter your
passwords and personal info.  Type ":wq", and `pdub` encrypts the buffer and
stores it in your home directory where only you can get to it.  Next time you
run it, `pdub` will decrypt the file, throw that into a buffer for your, and
you're back in business.

`pdub` is a small Python script.  That's good because it keeps things simple,
and no one wants complications when it comes to personal data.

`pdub` doesn't save your decryption passphrase or plain text passwords to any
temporary files.  It doesn't use `gpg`'s "--passphrase" option.  It uses pipes
like a good plumber so your passwords don't get spilled all over the place.

Need to recover your passwords without `pdub`?  Just run the following:

	$ gpg -d ~/.pdub/pdubs.json.gpg


Requirements
------------

 - a POSIX system
 - Python >= 2.6 (RHEL5 be dammned)
 - vim compiled with Pyton support
 - [GnuPG](http://www.gnupg.org/)


Details
-------

`pdub` uses `gpg` with the --symmetric flag for encryption.  The file is stored
in the `~/.pdub` directory.  If this isn't there it creates it for you.  The
directory must have 700 permissions and the actual file is stored with 600
permissions.


Things That Still Need Work
---------------------------

`pdub` assumes that you're storing your passwords in JSON.  Most people
probably don't want that.  There should be some configuration file where users
can specify file types and other preferences (like a .pdubrc).

It would also be cool if `pdub` integrated with Dropbox.  Don't get me wrong,
I'd never put my passwords out there like that, but since it's an encrypted
file there's probably people who would feel safe doing so.

pdub's People

Contributors

aaronj1335 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.