Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michalswi/gopass
go data/password encryptor
https://github.com/michalswi/gopass
aes-encryption golang hmac-sha256 password-store
Last synced: about 2 months ago
JSON representation
go data/password encryptor
- Host: GitHub
- URL: https://github.com/michalswi/gopass
- Owner: michalswi
- Created: 2024-03-15T11:54:46.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-05-07T07:56:14.000Z (8 months ago)
- Last Synced: 2024-06-21T14:08:21.746Z (7 months ago)
- Topics: aes-encryption, golang, hmac-sha256, password-store
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gopass
![](https://img.shields.io/github/issues/michalswi/gopass)
![](https://img.shields.io/github/forks/michalswi/gopass)
![](https://img.shields.io/github/stars/michalswi/gopass)
![](https://img.shields.io/github/last-commit/michalswi/gopass)
![](https://img.shields.io/github/release/michalswi/gopass)Simple go data/password encryptor.
### \# requirements
**go** in version **1.22**
### \# installation
`gopass` requires go1.22 to install successfully.
```
go install -v github.com/michalswi/gopass@latest
```You can also get `macos` or `linux` binary from [releases](https://github.com/michalswi/gopass/releases).
### \# usage
This will display help for the tool.
```
gopass -h
```### \# example
```
# create dummy data file$ date >> data.txt
$ cat data.txt
Thu Mar 14 12:44:18 CET 2024
Thu Mar 14 12:44:19 CET 2024
Thu Mar 14 12:44:19 CET 2024# generate secret key
$ gopass -g
┌─┐┌─┐┌─┐┌─┐┌─┐┌─┐
│ ┬│ │├─┘├─┤└─┐└─┐
└─┘└─┘┴ ┴ ┴└─┘└─┘
v0.1.0 - @michalswisecret: r10jNonOY5gHOESvbig1Wpkb5baSoKyZ
# encrypt data
$ gopass -e r10jNonOY5gHOESvbig1Wpkb5baSoKyZ data.txt
┌─┐┌─┐┌─┐┌─┐┌─┐┌─┐
│ ┬│ │├─┘├─┤└─┐└─┐
└─┘└─┘┴ ┴ ┴└─┘└─┘
v0.1.0 - @michalswiEncrypting data.
Encrypted file: 'encrypted.dat'.# decrypt data
$ gopass -d r10jNonOY5gHOESvbig1Wpkb5baSoKyZ encrypted.dat
┌─┐┌─┐┌─┐┌─┐┌─┐┌─┐
│ ┬│ │├─┘├─┤└─┐└─┐
└─┘└─┘┴ ┴ ┴└─┘└─┘
v0.1.0 - @michalswiDecrypting data.
Decrypted file: 'decrypted.dat'.$ cat decrypted.dat
Thu Mar 14 12:44:18 CET 2024
Thu Mar 14 12:44:19 CET 2024
Thu Mar 14 12:44:19 CET 2024
```### \# warning
Keep in mind that secret key written in console can be later on read from:
```
$ cat ~/.*_history
```