Giter Club home page Giter Club logo

pswrd's Introduction

pswrd

pswrd is a simple password management util. It doesn't store passwords anywhere, generating output on the fly.

There is also GUI version with Android support.

Why this wheel was reinvented? Well, I needed a simple util which doesn't require syncing data between devices.

Usage:

Calling without -simple arg will run in advanced mode prompting for master password, user name, domain and password version. These info may be passed in args -password, -user, -domain and -version accordingly. "Version" is password version. Default value is "1", increase it when you want make new password for requested the same user+domain pair.

Example:

pswrd -password 'my master password' -user 'username' -domain 'facebook.com' -version 2

Output:

V5YVTe8Au7oeDn2pVcCq

Or same in interactive mode:

user@computer:/tmp $ pswrd
Enter master password:
Enter user name (default: empty): username
Enter service name (usually domain name): facebook.com
Enter password version (default: 1): 2

V5YVTe8Au7oeDn2pVcCq

Output password string will also be placed to the clipboard if xclip util is available and -nc arg not specified.

Simple mode

There is also simple mode:

pswrd -simple 'any string'

Simple mode. Generate password based on input string. Ommiting 'any string' will prompt for input. Example:

pswrd -simple 'https://github.com/username'

Output:

cNq3nZfjC5rNFl2ri6RN

You can also supply a file instead of a string:

pswrd -file ~/picture.png

Note that -file mode doesn't support master password and version.

Other args

-alnum allows alphanumeric chars only in output.

-random generates random string.

Install:

Just copy the script to any path you will run it from (/usr/local/bin for example).

Requirements:

  • md5sum
  • head
  • sed
  • xxd
  • base64

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.