suwako / sp アーカイブ

このリポジトリはアーカイブされています。読むだけで、プッシュやイシューの変更は出来ません。

master
ブランチ master
sp / README.md
3.7 KB、151行 表示 生 Blame 履歴
1# sp
2シンプルなパスワードマネージャー
3Simple Password Manager
4
5## インストールする方法 | Installation
6### CRUX
7```sh
8doas prt-get depinst gpgme gnupg pinentry bmake
9bmake
10doas bmake install PREFIX=/usr
11doas bmake install-zsh PREFIX=/usr
12```
13
14### Artix
15```sh
16doas pacman -S base-devel gpgme gnupg pinentry bmake
17bmake
18doas bmake install PREFIX=/usr
19doas bmake install-zsh PREFIX=/usr
20```
21
22### OpenBSD
23```sh
24doas pkg_add gpgme gnupg pinentry
25make
26doas make install
27doas make install-zsh
28```
29
30### NetBSD
31```sh
32doas pkgin install gpgme gnupg pinentry
33make
34doas make install
35doas make install-zsh
36```
37
38### FreeBSD
39```sh
40doas pkg install gpgme gnupg pinentry
41make
42doas make install
43doas make install-zsh
44```
45
46### Haiku
47```sh
48pkgman install bmake libassuan libassuan_devel gpgme gpgme_devel gnupg llvm18_clang
49bmake
50bmake install
51bmake install-zsh
52```
53
54### macOS
55```sh
56brew install bmake libassuan gpgme gnupg pinentry pinentry-mac
57bmake
58doas bmake install
59doas bmake install-zsh
60```
61
62## 初期設定 | Initial setup
63「gpg -k」でGPG鍵IDを確認して、「sp -i [GPG ID]」を実行して下さい。
64Confirm your GPG key ID with "gpg -k", and run "sp -i [GPG ID]".
65
66## 使い方 | Usage
67### パスワードの作成 | Password generation
68#### 強いパスワードの場合 | Strong password
69```sh
70$ sp -g 64
71nSYGSF2lWGCUsqKCRB_~mZm+spaU<zvtt%um'01$tj4h,^nB6JqX#Cm$!U+s;c7:
72```
73又は
74Or
75```sh
76$ sp -g 64 secure
77nSYGSF2lWGCUsqKCRB_~mZm+spaU<zvtt%um'01$tj4h,^nB6JqX#Cm$!U+s;c7:
78```
79
80#### 弱いパスワードの場合 | Weak password
81```sh
82$ sp -g 12 risk
832aKBwb858mzg
84```
85
86### パスワードの追加 | Add password
87「suwako」というユーザー名の場合:
88If the username is "suwake":
89```sh
90$ sp -a 076.moe/suwako
91パスワード:
92パスワード(確認用):
93パスワードを保存出来ました。
94```
95入力中は何も表示されないので、ご注意下さい。
96
97### 英語で表示する場合 | For English
98```sh
99$ SP_LANG=en sp -a 076.moe/suwako
100Password:
101Password (for verification):
102The password got saved.
103```
104
105### パスワードの表示 | Show password
106```sh
107$ sp -s 076.moe/suwako
108nSYGSF2lWGCUsqKCRB_~mZm+spaU<zvtt%um'01$tj4h,^nB6JqX#Cm$!U+s;c7:
109```
110表示せずコピーする場合は、「sp -y 076.moe/suwako」を使用して下さい。
111If you want to copy the password to the clipboard without showing it,
112use "sp -y 076.moe/suwako" instead.
113
114### パスワードの削除 | Delete password
115```sh
116$ sp -d 076.moe/suwako
117パスワード「076.moe/suwako」を本当に削除する事が宜しいでしょうか? (y/N): y
118パスワードを削除しました。
119```
120
121### パスワードの編集 | Edit password
122```sh
123$ sp -e 076.moe/suwako
124パスワード:
125パスワード(確認用):
126パスワードを保存出来ました。
127```
128
129## TOTP(ワンタイムパスワード) | TOTP (one time password)
130### QRコードから | From QR code
131QRコードをダウンロードし、zbarimgを使用して「QR-Code:」以降の部分をコピーし、
132spに追加して下さい。\
133`sp -a`を実行すると、「パスワード」を聞かれますが、
134TOTPの場合は「otpauth://」から始まる文字列をコピペして下さい。
135
136Download the QR code image, copy everything after "QR-Code:"
137you get after using zbarimg, and add into sp.
138If you run "sp -a", it'll ask for a "password", but in the case of TOTP,
139paste everything starting from "otpauth://".
140```sh
141$ zbarimg -q gitler.png
142QR-Code:otpauth://totp/Gitler%20%28gitler.moe%29:suwako?algorithm=SHA1&digits=6&issuer=Gitler%20%28gitler.moe%29&period=30&secret=〇〇
143
144$ sp -a gitler-otp
145パスワード:
146パスワード(確認用):
147パスワードを保存出来ました。
148
149$ sp -o gitler-otp
150123456
151```