Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/himidori/pm
https://github.com/himidori/pm
go golang password-manager
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/himidori/pm
- Owner: himidori
- License: gpl-3.0
- Created: 2018-07-17T13:17:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-13T11:06:21.000Z (over 4 years ago)
- Last Synced: 2024-06-21T18:08:33.445Z (6 months ago)
- Topics: go, golang, password-manager
- Language: Go
- Size: 35.2 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pm
[Difrex's perl password manager](https://github.com/difrex/pm) rewritten in go
# install
From AUR
```
pacaur -S pm
```# usage
## gpg key
generate a gpg key if you don't have one
```
gpg --gen-key
```set your gpg key as the default one in ~/.gnupg/gpg.conf
or use a custom key instead
```
# Create file with key email
cat > ~/.PM/.key << EOF
[email protected]
EOF
```## first run
```
$ ./pm
creating configuration directory...
creating database scheme...
encrypting database...
```## check help
```
$ ./pm -h
Simple password manager written in Go-s show password
-n [Name of resource] name of resource
-g [Group name] group name
-o open link
-t show passwords as table
-w store new password
-I interactive mode for adding new password
-l [Link] link to resource
-u username
-c comment
-p [Password] password
(if password is omitted PM will
generate a secure password)
-L [Length] length of generated password
-r remove password
-i password ID
-m show dmenu
-R show rofi
-h show help
```# examples
## adding a new password
### store your own password
```
./pm -wn porn -l coolpornsite.com -u john -p coolpassword -c 'my favorite site!'
```### let pm generate a password by omitting the -p flag
```
./pm -wn porn -l coolpornsite.com -u john -c 'my favorite site!'
```### choose the length of a generated password with the -L flag
```
./pm -wn porn -l coolpornsite.com -u john -L 32 -c 'my favorite site!'
```### adding a password in the interactive way
```
./pm -wI
```## showing passwords
### show passwords in dmenu
```
./pm -m
```### show passwords in rofi
```
./pm -R
```### print all passwords
```
$ ./pm -sn all
id: 1
name: porn
resource: coolpornsite.com
username: john
comment: my favorite site!
group:
```### print all passwords related to the group 'work'
```
./pm -sg work
```### print passwords in a nice formatted table by using the -t flag
```
$ ./pm -stn all
id name resource username comment group
----------------------------------------------------------
1 porn coolpornsite.com john my favorite site!
```### find password by name and copy it in the clipboard
```
$ ./pm -sn porn
password was copied to the clipboard!
URL: coolpornsite.com
User: john
Group:
```### copy password in the clipboard and follow the link in the browser
```
./pm -son porn
```## removing a password
```
$ ./pm -ri 13
successfuly removed password with id 13
```