https://github.com/amirhnajafiz/tokenizer
Manage your system tokens by Tokenizer!
https://github.com/amirhnajafiz/tokenizer
cli env environment-variables go golang token tokens
Last synced: 3 months ago
JSON representation
Manage your system tokens by Tokenizer!
- Host: GitHub
- URL: https://github.com/amirhnajafiz/tokenizer
- Owner: amirhnajafiz
- Created: 2022-12-18T09:25:56.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-09T16:10:50.000Z (over 1 year ago)
- Last Synced: 2024-07-10T12:19:48.646Z (over 1 year ago)
- Topics: cli, env, environment-variables, go, golang, token, tokens
- Language: Go
- Homepage:
- Size: 86.9 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tokenizer



By using ```Tokenizer``` you can manage your system tokens and credentials. You can
set your tokens, encrypt them, list them, update and delete them. The best solution
to protect your sensitive information.## setup
Clone into repository and build ```tokenizer``` by using the following commands:
```shell
git clone https://github.com/amirhnajafiz/tokenizer.git
cd tokenizer
make build
```In order to use ```tokenizer``` in every place on your system, make sure to the followings to
either ~/.zshrc, ~/.bash_profile, or ~/.bashrc.```shell
export PATH=":$PATH"
export TK_PATH=""
```## encrypt
Your tokens are being stored in ```conf.txt``` file which is encrypted with
a private key that you can set by setting a value to ```TK_PRIVATE``` environment
variable. Make sure to set a 16 byte value.```text
7nKyNrGb0Djjyv9UqT4pGaJorDA64QdsfQ==//&&//VcvhC6O4Rm3j3rmMQFMFONWnDHeXus542G4cUydlpcn98cMxyTvBI1KdcJsM
2AX/7Q/EGjMYO/wE95BESCi2o/f381KmGp63//&&//VDUD18Y4P+aBg88kfV4/pXStObtm3trslVRSprAmpHPEMZGFhwD000KISds=
```## examples
### set
```shell
tokenizer/tk set PWA_TOKEN "h30301j99nn968nskd[[j043jf3fj"
```### get all
```shell
tokenizer/tk allPWA_TOKEN
```### get
```shell
tokenizer/tk get PWA_TOKENh30301j99nn968nskd[[j043jf3fj
```### delete
```shell
tokenizer/tk del PWA_TOKEN
```