pass

Store encrypted passwords in a local SQLite database

Installation

SQLite

CREATE TABLE IF NOT EXISTS "data" (
  "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
  "name"	    TEXT NOT NULL,
  "username"	TEXT NOT NULL,
  "password"	TEXT NOT NULL,
  "tag"	        TEXT NOT NULL DEFAULT '',
  "created_at"	TEXT NOT NULL DEFAULT '',
  "updated_at"	TEXT NOT NULL DEFAULT ''
);

Crystal

shards install
crystal build src/pass.cr --release

Usage

Add record

./pass --add --name=Gmail [email protected] --password=123ABC --tag=Google

Update a record

./pass --update --id=1 --name=Email [email protected] --password=ABC123 --tag=Gmail

Remove a record

./pass --remove --id=1

Search all records

./pass --search --all

Search by id

./pass --search --id=1

Search by name

./pass --search --name=Email

Search by username

./pass --search [email protected]

Search by tag

./pass --search --tag=Gmail

Contributing

  1. Fork it (https://github.com/xtokio/pass/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors