2022-01-16 18:20:39 +00:00
|
|
|
---
|
|
|
|
title: "pass"
|
|
|
|
tags: [ "Documentation", "data" ]
|
|
|
|
---
|
2020-02-07 23:06:49 +00:00
|
|
|
[Video instructions](https://www.hooktube.com/watch?v=hlRQTj1D9LA)
|
|
|
|
|
|
|
|
Setup [gpg](./gpg.md) keys.
|
|
|
|
|
|
|
|
Show your gpg secret it:
|
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
gpg --list-secret-keys
|
|
|
|
```
|
2020-02-07 23:06:49 +00:00
|
|
|
|
|
|
|
Then use the id number under `sec` to make a pass repo:
|
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
KEY="$(gpg --list-secret-keys | grep -m 1 -A1 '^sec' | tail -n 1)"
|
|
|
|
```
|
2020-02-07 23:06:49 +00:00
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
pass init $KEY
|
|
|
|
```
|
2020-02-07 23:06:49 +00:00
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
To add a basic password, e.g. for `$WEBSITE`:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
pass $WEBSITE
|
|
|
|
```
|
2020-02-07 23:06:49 +00:00
|
|
|
|
|
|
|
To insert a multiline password, e.g. with a login name:
|
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
pass add -m $WEBSITE
|
|
|
|
```
|
2020-02-07 23:06:49 +00:00
|
|
|
|
|
|
|
Remove a password:
|
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
pass rm $WEBSITE
|
|
|
|
```
|
2020-02-07 23:06:49 +00:00
|
|
|
|