Installation
- download latest binary from
realises
- 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