Git Product home page Git Product logo

pwclip's Introduction

pwclip

pwclip is a hash-based, command-line password manager. pwclip does not store passwords. Instead, it computes an account's password by hashing a secret key together with account-specific information stored in a YAML file.

The previous Python implementation (in the python/ directory) is not compatible with the Go implementation.

Usage

  1. go get github.com/davidlazar/pwclip/...

  2. Pick and remember a passphrase. Alternatively, you can use a key file with the -k flag.

  3. Create a separate YAML file containing the password settings for each account. Here is a minimal example:

    $ cat github
    url: github.com
    username: davidlazar
    

    Here is an example that gives a value to every recognized field:

    $ cat example
    url: example.com
    username: [email protected]
    length: 48
    prefix: foobar
    charset: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$%^&*()_-+={}|[]\:";'<>?,./
    q1: frequent flier number
    q2: first car
    

    The q1..qN fields are used to give unique answers to secret questions used for password recovery.

  4. Copy the password to the clipboard:

    $ pwclip github
    Passphrase: ...
    Password copied to clipboard for 10 seconds.
    

    Print the password to the screen:

    $ pwclip -p example
    Passpharse: ...
    foobarGLKyG"Cd,,Yv2w:S5Z[*p`]z3jQp^X2};nyYf<.dNK
    

    Use a key file instead of prompting for a passphrase:

    $ pwclip -k ~/secret/key -p example
    foobarb)+H69iq<{[%/V'8bFVRN@l2&-$iGr0PB#zK1T`*CL
    

    The -q N flag generates the answer to secret question N:

    $ pwclip -k ~/secret/key -p example -q1
    foobarhqL3d,!zsyYOrko1%I`L@&Q-mE1`%K|soR0>%BN,^D
    
    $ pwclip -k ~/secret/key -p example -q2
    foobarL;)eL!Ij+{E&8++*F0XO5'4APtE{>INFb4sF,d[):7
    

    Note that the answers use the same settings as the password.

pwclip's People

Contributors

alcarithemad avatar davidlazar avatar jsolmon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.