Skip to content

Just little CLI password manager to manage your accounts

License

Notifications You must be signed in to change notification settings

readyyyk/little-pswd-mgr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example gif used asciinema.org and asciinema/agg

Installation

  1. download latest binary from realises
  2. to make tokens accessible from anywhere type:
$ # rename executable you downloaded to "tokens"
$ mv tokens-linux-amd64 tokens # example
$ chmod 777 tokens
$ echo -e "\n$(printf 'PATH=\"$PATH:%s\"' $(pwd))\n" >> ~/.bashrc | source ~/.bashrc

or change $(pwd) to your installation path

pwd pastes your current terminal directory

Custom make

git clone https://github.com/readyyyk/little-pswd-mgr
cd little-pswd-mgr
make
sudo make install

Usage

flags data format description 🚩
<no flag> logs saved data
-h or --help shows help message
-a or --add "data user@host" adds new
-d or --del user@host deletes one
-s or --sort string logs only records that contain provided string

Examples

Log all data

tokens

Output:

DATA  USER  @  HOST           
───────────────────────────────
123   test  @  todooos.live   
qwe    zxc  @  localhost:5541
root  root  @  localhost

Help

tokens -h
tokens --help

Output:

<help output>

Log sorted data

tokens -s localhost
tokens --sort localhost

Output: (but with colors)

DATA  USER  @  HOST           
─────────────────────────────── 
qwe    zxc  @  localhost:5541
root  root  @  localhost

Adding

tokens --add "my_password qwerty@github.com"
tokens -a "my_password qwerty@github.com"

Output:

Added

Deletion

tokens --del raeadyyyk@github.com
tokens -d "raeadyyyk@github.com"

Output:

Deleted

or

Not found record with user: raeadyyyk for host: github.com

TODO

  • refactor everything...
  • add password input
  • encryption for data file