- download package
- install the execute file into the global scope
- run
cp ./secrettool /usr/local/bin/
- run
- run
secrettool encrypt -e <the message you want to encrypt>
- run
secrettool decrypt
- run
secrettool pwdgenerator -l <password length>
also you can set the password includes digit or upper case or lower case or special case.
- If you are interested in my project, you could contribute to this repo Thx. I want to this project become great common tool for daily life.
- If you want to install cobra client in you local, you can run
go install github.com/spf13/cobra-cli@latest
- If the error
zsh: command not found: cobra-cli
occurred to your console, you can add the following code to your.zshrc
fileexport GOPATH=$HOME/go export GOBIN=$GOPATH/bin export PATH=${PATH}:$GOBIN
- Then save
.zshrc
file, and runsource ~/.zshrc
and restart your console
- If the error
- If you want to add new feature to this tool, you can launch a PR.
- How to use cobra?