Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/morzhanov/go-pwd
Password encrypt-decrypt util
https://github.com/morzhanov/go-pwd
Last synced: 20 days ago
JSON representation
Password encrypt-decrypt util
- Host: GitHub
- URL: https://github.com/morzhanov/go-pwd
- Owner: morzhanov
- Created: 2024-07-05T16:04:20.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-08T14:28:01.000Z (6 months ago)
- Last Synced: 2024-11-08T00:52:36.134Z (2 months ago)
- Language: Go
- Size: 2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-pwd
Tool to encode/decode passwords
## Encryption
```shell
gpwd enc
```It will prompt to provide secret and password
## Decryption
```shell
gpwd dec
```It will prompt for secret and after that password will be printed out
## Building and adding to PATH (fish)
1. **Compile your Go script into a binary**:
Compile your script into a binary by running:
```shell
go build . -o gpwd
```
Or```shell
make build
```2. **Move the binary to a directory in your PATH**:
Create a directory for your custom binaries. You can create a `bin` directory in your home directory:
```shell
mkdir ~/bin
```Move the `gpwd` binary to this directory:
```shell
mv gpwd ~/bin
```3. **Add the directory to your PATH in Fish shell**:
Open your Fish shell configuration file `~/.config/fish/config.fish`:
```shell
nano ~/.config/fish/config.fish
```Add the following line to this file to include the `bin` directory in your PATH:
```shell
set -gx PATH $HOME/bin $PATH
```Save the changes to the configuration file.
4. **Reload Fish configuration**:
After saving the changes, reload your Fish configuration to apply the changes:
```shell
source ~/.config/fish/config.fish
```5. **Test your setup**:
You should now be able to run `gpwd` from anywhere in your terminal, and it should execute your `gpwd` script.