Skip to content

Latest commit

 

History

History
115 lines (102 loc) · 2.64 KB

README.md

File metadata and controls

115 lines (102 loc) · 2.64 KB

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