cpass-cli 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cpass/__init__.py +0 -0
- cpass/main.py +406 -0
- cpass_cli-1.0.0.dist-info/METADATA +640 -0
- cpass_cli-1.0.0.dist-info/RECORD +8 -0
- cpass_cli-1.0.0.dist-info/WHEEL +5 -0
- cpass_cli-1.0.0.dist-info/entry_points.txt +2 -0
- cpass_cli-1.0.0.dist-info/licenses/LICENSE +674 -0
- cpass_cli-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,640 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cpass-cli
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Encode/Decode your passwords with Morse code.
|
|
5
|
+
Author-email: Gentlhug <gentlhug@proton.me>
|
|
6
|
+
License: GPL-3.0-or-later
|
|
7
|
+
Requires-Python: >=3.11
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Dist: MorseCodePy==4.2.1
|
|
11
|
+
Requires-Dist: prettytable==3.18.0
|
|
12
|
+
Dynamic: license-file
|
|
13
|
+
|
|
14
|
+
# cPass
|
|
15
|
+
|
|
16
|
+
Encode/Decode your passwords with Morse code.
|
|
17
|
+
|
|
18
|
+
[](LICENSE)
|
|
19
|
+

|
|
20
|
+
|
|
21
|
+
**Summary**
|
|
22
|
+
|
|
23
|
+
- [๐โโ๏ธโโก๏ธ TL;DR](#๏ธ๏ธ-tldr)
|
|
24
|
+
- [Encode your passphrase/password](#encode-your-passphrasepassword)
|
|
25
|
+
- [Decode your passphrase/password](#decode-your-passphrasepassword)
|
|
26
|
+
- [Encode your `.txt` file](#encode-your-txt-file)
|
|
27
|
+
- [Decode your `.txt` file](#decode-your-txt-file)
|
|
28
|
+
- [Encode your secret words (crypto users)](#encode-your-secret-words-crypto-users)
|
|
29
|
+
- [Decode your secret words (crypto users)](#decode-your-secret-words-crypto-users)
|
|
30
|
+
- [๐ป Installation](#-installation)
|
|
31
|
+
- [Install with `pip`](#install-with-pip)
|
|
32
|
+
- [๐ Documentation](#-documentation)
|
|
33
|
+
- [[required] `input` argument](#required-input-argument)
|
|
34
|
+
- [[optional] `-L/--language` option](#optional--l--language-option)
|
|
35
|
+
- [[optional] `-d/--dot` option](#optional--d--dot-option)
|
|
36
|
+
- [[optional] `-D/--dash` option](#optional--d--dash-option)
|
|
37
|
+
- [[optional] `-s/--separator` option](#optional--s--separator-option)
|
|
38
|
+
- [[optional] `-o/--output` option](#optional--o--output-option)
|
|
39
|
+
- [[optional] `--markup` option](#optional---markup-option)
|
|
40
|
+
- [[optional] `-u/--upper-case` option](#optional--u--upper-case-option)
|
|
41
|
+
- [[optional] `-t/--title-case` option](#optional--t--title-case-option)
|
|
42
|
+
- [[optional] `-f/--fingerprint` option](#optional--f--fingerprint-option)
|
|
43
|
+
- [[optional] `--hidden` option](#optional---hidden-option)
|
|
44
|
+
- [๐ Usage](#-usage)
|
|
45
|
+
- [I want to encode my passphrase: `craftwork thus robust dares lullaby`](#i-want-to-encode-my-passphrase-craftwork-thus-robust-dares-lullaby)
|
|
46
|
+
- [I want to encode my passphrase and store the value in a `.txt` file](#i-want-to-encode-my-passphrase-and-store-the-value-in-a-txt-file)
|
|
47
|
+
- [I want to encode my passphrase with `i` as `-`, `h` as `.` and `|` as `/`](#i-want-to-encode-my-passphrase-with-i-as---h-as--and--as-)
|
|
48
|
+
- [I want to encode my passphrase in *chaotic case*: `crAftwoRk Thus r0Bust dAr3s Lull4by`](#i-want-to-encode-my-passphrase-in-chaotic-case-craftwork-thus-r0bust-dar3s-lull4by)
|
|
49
|
+
- [I want to encode my `.txt` file](#i-want-to-encode-my-txt-file)
|
|
50
|
+
- [I want to encode my password: `Th1sIs4Str0ng-p@ssw0rd!`](#i-want-to-encode-my-password-th1sis4str0ng-pssw0rd)
|
|
51
|
+
- [๐ WTF is this sh*t?](#-wtf-is-this-sht)
|
|
52
|
+
- [I want to decode my encoded passphrase in lowercase: `craftwork thus robust dares lullaby`](#i-want-to-decode-my-encoded-passphrase-in-lowercase-craftwork-thus-robust-dares-lullaby)
|
|
53
|
+
- [I want to decode my encoded passphrase in uppercase: `CRAFTWORK THUS ROBUST DARES LULLABY`](#i-want-to-decode-my-encoded-passphrase-in-uppercase-craftwork-thus-robust-dares-lullaby)
|
|
54
|
+
- [I want to decode my encoded passphrase in titlecase: `Craftwork Thus Robust Dares Lullaby`](#i-want-to-decode-my-encoded-passphrase-in-titlecase-craftwork-thus-robust-dares-lullaby)
|
|
55
|
+
- [I want to decode my encoded passphrase and store the value in a `.txt` file](#i-want-to-decode-my-encoded-passphrase-and-store-the-value-in-a-txt-file)
|
|
56
|
+
- [I want to decode my encoded passphrase in *chaotic case*: `crAftwoRk Thus r0Bust dAr3s Lull4by`](#i-want-to-decode-my-encoded-passphrase-in-chaotic-case-craftwork-thus-r0bust-dar3s-lull4by)
|
|
57
|
+
- [I want to decode my encoded password: `Th1sIs4Str0ng-p@ssw0rd!`](#i-want-to-decode-my-encoded-password-th1sis4str0ng-pssw0rd)
|
|
58
|
+
- [I want to decode my `.txt` file](#i-want-to-decode-my-txt-file)
|
|
59
|
+
- [๐ Holy sh*t!](#-holy-sht)
|
|
60
|
+
- [I want to encode my secret words for my crypto wallet](#i-want-to-encode-my-secret-words-for-my-crypto-wallet)
|
|
61
|
+
- [I want to encode my secret words and store the value in a `.txt` file](#i-want-to-encode-my-secret-words-and-store-the-value-in-a-txt-file)
|
|
62
|
+
- [I want to decode my encoded secret words](#i-want-to-decode-my-encoded-secret-words)
|
|
63
|
+
- [I want to decode my encoded secret words and store the value in a `.txt` file](#i-want-to-decode-my-encoded-secret-words-and-store-the-value-in-a-txt-file)
|
|
64
|
+
- [๐ Support me](#-support-me)
|
|
65
|
+
- [๐ซถ Credits](CREDITS.md)
|
|
66
|
+
|
|
67
|
+
## ๐โโ๏ธโโก๏ธ TL;DR
|
|
68
|
+
|
|
69
|
+
### Encode your passphrase/password
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
cpass encode "craftwork thus robust dares lullaby"
|
|
73
|
+
cpass encode "myp4ssw0rd!"
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Decode your passphrase/password
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
cpass decode "-.-. .-. .- ..-. - .-- --- .-. -.- / - .... ..- ... / .-. --- -... ..- ... - / -.. .- .-. . ... / .-.. ..- .-.. .-.. .- -... -.--"
|
|
80
|
+
cpass decode "-- -.-- .--. ....- ... ... .-- ----- .-. -.. -.-.--"
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Encode your `.txt` file
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
cpass encode "/path/to/your/file.txt"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Decode your `.txt` file
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
cpass decode "/path/to/your/file.txt"
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Encode your secret words (crypto users)
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
cpass encrypto "/path/to/your/secret-words.txt"
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Decode your secret words (crypto users)
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
cpass decrypto "/path/to/your/encoded-secret-words.txt"
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## ๐ป Installation
|
|
108
|
+
|
|
109
|
+
### Install with `pip`
|
|
110
|
+
|
|
111
|
+
#### Requirements
|
|
112
|
+
|
|
113
|
+

|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
pip install c-pass
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## ๐ Documentation
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
cpass encode --help
|
|
123
|
+
cpass decode --help
|
|
124
|
+
cpass encrypto --help
|
|
125
|
+
cpass decrypto --help
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### [required] `input` argument
|
|
129
|
+
|
|
130
|
+
Your passphrase/password or your file path to encode/decode.
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
cpass encode "my beautiful passphrase"
|
|
134
|
+
cpass encode "/path/to/your/file.txt"
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
cpass decode ". -. -.-. --- -.. .. -. --."
|
|
139
|
+
cpass decode "/path/to/your/file.txt"
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
cpass encrypto "/path/to/your/secret-words.txt"
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
cpass decrypto "/path/to/your/encoded-secret-words.txt"
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### [optional] `-L/--language` option
|
|
151
|
+
|
|
152
|
+
Language of your password/passphrase. It's `english` by default.
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
cpass encode "encoding" --language english
|
|
156
|
+
cpass encode "prรฉparer" -L french
|
|
157
|
+
cpass encode "ademรกs" -L spanish
|
|
158
|
+
cpass encode "ะทะดัะฐะฒััะฒัะนัะต" -L russian
|
|
159
|
+
cpass encode "ะฒัััััั" -L ukrainian
|
|
160
|
+
cpass encode "123456789" -L numbers
|
|
161
|
+
cpass encode ".;?!@-+=/" -L special
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
cpass decode ". -. -.-. --- -.. .. -. --." --language english
|
|
166
|
+
cpass decode ".--. .-. ..-.. .--. .- .-. . .-." -L french
|
|
167
|
+
cpass decode ".- -.. . -- .--.- ..." -L spanish
|
|
168
|
+
cpass decode "--.. -.. .-. .- .-- ... - .-- ..- .--- - ." -L russian
|
|
169
|
+
cpass decode ".-- ---. .. - -..- ... .-.-" -L ukrainian
|
|
170
|
+
cpass decode ".---- ..--- ...-- ....- ..... -.... --... ---.. ----." -L numbers
|
|
171
|
+
cpass decode ".-.-.- -.-.-. ..--.. -.-.-- .--.-. -....- .-.-. -...- -..-." -L special
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
cpass encrypto "/path/to/your/secret-words.txt" --language english
|
|
176
|
+
cpass encrypto "/path/to/your/secret-words.txt" -L french
|
|
177
|
+
cpass encrypto "/path/to/your/secret-words.txt" -L spanish
|
|
178
|
+
cpass encrypto "/path/to/your/secret-words.txt" -L russian
|
|
179
|
+
cpass encrypto "/path/to/your/secret-words.txt" -L ukrainian
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
cpass decrypto "/path/to/your/encoded-secret-words.txt" --language english
|
|
184
|
+
cpass decrypto "/path/to/your/encoded-secret-words.txt" -L french
|
|
185
|
+
cpass decrypto "/path/to/your/encoded-secret-words.txt" -L spanish
|
|
186
|
+
cpass decrypto "/path/to/your/encoded-secret-words.txt" -L russian
|
|
187
|
+
cpass decrypto "/path/to/your/encoded-secret-words.txt" -L ukrainian
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
โ ๏ธ *Some special characters aren't supported. Here is the list:*
|
|
191
|
+
|
|
192
|
+
```python
|
|
193
|
+
["#", "[", "]", "{", "}", "<", ">", "|", "*", "ยต", "ยฃ", "^", "~", "ยฐ", "`", "ยง", "%"]
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### [optional] `-d/--dot` option
|
|
197
|
+
|
|
198
|
+
Character representing the dot. It's `.` by default.
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
cpass encode "encoding" -d "p"
|
|
202
|
+
cpass encode "encoding" --dot "p"
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
cpass decode "p -p -p-p --- -pp pp -p --p" -d "p"
|
|
207
|
+
cpass decode "p -p -p-p --- -pp pp -p --p" --dot "p"
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
cpass encrypto "/path/to/your/secret-words.txt" -d "p"
|
|
212
|
+
cpass encrypto "/path/to/your/secret-words.txt" --dot "p"
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
cpass decrypto "/path/to/your/encoded-secret-words.txt" -d "p"
|
|
217
|
+
cpass decrypto "/path/to/your/encoded-secret-words.txt" --dot "p"
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### [optional] `-D/--dash` option
|
|
221
|
+
|
|
222
|
+
Character representing the dash. It's `-` by default.
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
cpass encode "encoding" -D "t"
|
|
226
|
+
cpass encode "encoding" --dash "t"
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
cpass decode ". t. t.t. ttt t.. .. t. tt." -D "t"
|
|
231
|
+
cpass decode ". t. t.t. ttt t.. .. t. tt." --dash "t"
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
```bash
|
|
235
|
+
cpass encrypto "/path/to/your/secret-words.txt" -D "t"
|
|
236
|
+
cpass encrypto "/path/to/your/secret-words.txt" --dash "t"
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
```bash
|
|
240
|
+
cpass decrypto "/path/to/your/encoded-secret-words.txt" -D "t"
|
|
241
|
+
cpass decrypto "/path/to/your/encoded-secret-words.txt" --dash "t"
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### [optional] `-s/--separator` option
|
|
245
|
+
|
|
246
|
+
Character representing the words spacing. It's `/` by default.
|
|
247
|
+
|
|
248
|
+
```bash
|
|
249
|
+
cpass encode "abcde fghijk lmnopq" -s "|"
|
|
250
|
+
cpass encode "abcde fghijk lmnopq" --separator "|"
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
cpass decode ".- -... -.-. -.. . | ..-. --. .... .. .--- -.- | .-.. -- -. --- .--. --.-" -s "|"
|
|
255
|
+
cpass decode ".- -... -.-. -.. . | ..-. --. .... .. .--- -.- | .-.. -- -. --- .--. --.-" --separator "|"
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
### [optional] `-o/--output` option
|
|
259
|
+
|
|
260
|
+
Absolute or relative path to store your encoded/decoded password/passphrase/file.
|
|
261
|
+
|
|
262
|
+
```bash
|
|
263
|
+
cpass encode "encoding" -o /path/to/your/file.txt
|
|
264
|
+
cpass encode "encoding" --output /path/to/your/file.txt
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
```bash
|
|
268
|
+
cpass decode ". -. -.-. --- -.. .. -. --." -o /path/to/your/file.txt
|
|
269
|
+
cpass decode ". -. -.-. --- -.. .. -. --." --output /path/to/your/file.txt
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
```bash
|
|
273
|
+
cpass encrypto "/path/to/your/secret-words.txt" -o /path/to/your/encoded-words.txt
|
|
274
|
+
cpass encrypto "/path/to/your/secret-words.txt" --output /path/to/your/encoded-words.txt
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
```bash
|
|
278
|
+
cpass decrypto "/path/to/your/encoded-secret-words.txt" -o /path/to/your/decoded-words.txt
|
|
279
|
+
cpass decrypto "/path/to/your/encoded-secret-words.txt" --output /path/to/your/decoded-words.txt
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
### [optional] `--markup` option
|
|
283
|
+
|
|
284
|
+
Shows the original character in brackets before its Morse code (or vice versa).
|
|
285
|
+
|
|
286
|
+
**Encoding**
|
|
287
|
+
|
|
288
|
+
```bash
|
|
289
|
+
cpass encode "encoding" --markup
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
Output:
|
|
293
|
+
|
|
294
|
+
```
|
|
295
|
+
[E] . [N] -. [C] -.-. [O] --- [D] -.. [I] .. [N] -. [G] --.
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
**Decoding**
|
|
299
|
+
|
|
300
|
+
```bash
|
|
301
|
+
cpass decode ". -. -.-. --- -.. .. -. --." --markup
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
Output:
|
|
305
|
+
|
|
306
|
+
```
|
|
307
|
+
[.] e [-.] n [-.-.] c [---] o [-..] d [..] i [-.] n [--.] g
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
### [optional] `-u/--upper-case` option
|
|
311
|
+
|
|
312
|
+
Show your decoded passphrase in UPPERCASE.
|
|
313
|
+
|
|
314
|
+
```bash
|
|
315
|
+
cpass decode ". -. -.-. --- -.. .. -. --. / -.. . -.-. --- -.. .. -. --." -u
|
|
316
|
+
cpass decode ". -. -.-. --- -.. .. -. --. / -.. . -.-. --- -.. .. -. --." --upper-case
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
Output:
|
|
320
|
+
|
|
321
|
+
```
|
|
322
|
+
ENCODING DECODING
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
โ ๏ธ *This option is for `decode` subcommand only.*
|
|
326
|
+
|
|
327
|
+
### [optional] `-t/--title-case` option
|
|
328
|
+
|
|
329
|
+
Show your decoded passphrase in Title Case.
|
|
330
|
+
|
|
331
|
+
```bash
|
|
332
|
+
cpass decode ". -. -.-. --- -.. .. -. --. / -.. . -.-. --- -.. .. -. --." -t
|
|
333
|
+
cpass decode ". -. -.-. --- -.. .. -. --. / -.. . -.-. --- -.. .. -. --." --title-case
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
Output:
|
|
337
|
+
|
|
338
|
+
```
|
|
339
|
+
Encoding Decoding
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
โ ๏ธ *This option is for `decode` subcommand only.*
|
|
343
|
+
|
|
344
|
+
### [optional] `-f/--fingerprint` option
|
|
345
|
+
|
|
346
|
+
Determine which letter is uppercase or lowercase. The length of the fingerprint must match with the length of your (decoded) passphrase.
|
|
347
|
+
|
|
348
|
+
```bash
|
|
349
|
+
cpass decode ". -. -.-. --- -.. .. -. --. / -.. . -.-. --- -.. .. -. --." -f 11212211322112121
|
|
350
|
+
cpass decode ". -. -.-. --- -.. .. -. --. / -.. . -.-. --- -.. .. -. --." --fingerprint 11212211322112121
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
Output:
|
|
354
|
+
|
|
355
|
+
```
|
|
356
|
+
enCoDIng DEcoDiNg
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
โ ๏ธ *This option is for `decode` subcommand only.*
|
|
360
|
+
|
|
361
|
+
๐ก *The fingerprint is automaticaly generated if your passphrase is chaotic_case (contains uppercase and lowercase letters).*
|
|
362
|
+
|
|
363
|
+
### [optional] `--hidden` option
|
|
364
|
+
|
|
365
|
+
Hide your original secret words in a table.
|
|
366
|
+
|
|
367
|
+
```bash
|
|
368
|
+
cpass encrypto "/path/to/your/secret-words.txt" --hidden
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
```bash
|
|
372
|
+
cpass decrypto "/path/to/your/encoded-secret-words.txt" --hidden
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
## ๐ Usage
|
|
376
|
+
|
|
377
|
+
### I want to encode my passphrase: `craftwork thus robust dares lullaby`
|
|
378
|
+
|
|
379
|
+
```bash
|
|
380
|
+
cpass encode "craftwork thus robust dares lullaby"
|
|
381
|
+
cpass encode "CRAFTWORK THUS ROBUST DARES LULLABY"
|
|
382
|
+
cpass encode "Craftwork Thus Robust Dares Lullaby"
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
Output:
|
|
386
|
+
|
|
387
|
+
```
|
|
388
|
+
-.-. .-. .- ..-. - .-- --- .-. -.- / - .... ..- ... / .-. --- -... ..- ... - / -.. .- .-. . ... / .-.. ..- .-.. .-.. .- -... -.--
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
โน๏ธ *Note there are no differences between lowercase, UPPERCASE and Title Case for encoding.*
|
|
392
|
+
|
|
393
|
+
### I want to encode my passphrase and store the value in a `.txt` file
|
|
394
|
+
|
|
395
|
+
```bash
|
|
396
|
+
cpass encode "craftwork thus robust dares lullaby" --output /path/to/your/file.txt
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
### I want to encode my passphrase with `i` as `-`, `h` as `.` and `|` as `/`
|
|
400
|
+
|
|
401
|
+
```bash
|
|
402
|
+
cpass encode "craftwork thus robust dares lullaby" -D i -d h -s "|"
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
Output:
|
|
406
|
+
|
|
407
|
+
```
|
|
408
|
+
ihih hih hi hhih i hii iii hih ihi | i hhhh hhi hhh | hih iii ihhh hhi hhh i | ihh hi hih h hhh | hihh hhi hihh hihh hi ihhh ihii
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
### I want to encode my passphrase in *chaotic case*: `crAftwoRk Thus r0Bust dAr3s Lull4by`
|
|
412
|
+
|
|
413
|
+
```bash
|
|
414
|
+
cpass encode "crAftwoRk Thus r0Bust dAr3s Lull4by"
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
Output:
|
|
418
|
+
|
|
419
|
+
```
|
|
420
|
+
-.-. .-. .- ..-. - .-- --- .-. -.- / - .... ..- ... / .-. ----- -... ..- ... - / -.. .- .-. ...-- ... / .-.. ..- .-.. .-.. ....- -... -.--
|
|
421
|
+
Fingerprint: 11211112182111518211141216152111711
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
๐ก *Note that the fingerprint is used to determine the uppercase and lowercase letters in the passphrase.*
|
|
425
|
+
|
|
426
|
+
### I want to encode my `.txt` file
|
|
427
|
+
|
|
428
|
+
```bash
|
|
429
|
+
cpass encode "/path/to/your/file.txt"
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
### I want to encode my password: `Th1sIs4Str0ng-p@ssw0rd!`
|
|
433
|
+
|
|
434
|
+
```bash
|
|
435
|
+
cpass encode "Th1sIs4Str0ng-p@ssw0rd!"
|
|
436
|
+
```
|
|
437
|
+
|
|
438
|
+
Output:
|
|
439
|
+
|
|
440
|
+
```
|
|
441
|
+
- .... .---- ... .. ... ....- ... - .-. ----- -. --. -....- .--. .--.-. ... ... .-- ----- .-. -.. -.-.--
|
|
442
|
+
Fingerprint: 21312132113113131113113
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
### ๐ WTF is this sh*t?
|
|
446
|
+
|
|
447
|
+
I want to encode my encoded passphrase: `crAftwoRk Thus r0Bust dAr3s Lull4by`!
|
|
448
|
+
|
|
449
|
+
```bash
|
|
450
|
+
cpass encode "crAftwoRk Thus r0Bust dAr3s Lull4by" -d "ะ" -D "ะน" -s "ะท"
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
```bash
|
|
454
|
+
cpass encode "ะนะะนะ ะะนะ ะะน ะะะนะ ะน ะะนะน ะนะนะน ะะนะ ะนะะน ะท ะน ะะะะ ะะะน ะะะ ะท ะะนะ ะนะนะนะนะน ะนะะะ ะะะน ะะะ ะน ะท ะนะะ ะะน ะะนะ ะะะะนะน ะะะ ะท ะะนะะ ะะะน ะะนะะ ะะนะะ ะะะะะน ะนะะะ ะนะะนะน" -d "รก" -D "ร" -s "รณ" -L russian
|
|
455
|
+
```
|
|
456
|
+
|
|
457
|
+
Output:
|
|
458
|
+
|
|
459
|
+
```
|
|
460
|
+
ะนะะนะ ะะนะ ะะน ะะะนะ ะน ะะนะน ะนะนะน ะะนะ ะนะะน ะท ะน ะะะะ ะะะน ะะะ ะท ะะนะ ะนะนะนะนะน ะนะะะ ะะะน ะะะ ะน ะท ะนะะ ะะน ะะนะ ะะะะนะน ะะะ ะท ะะนะะ ะะะน ะะนะะ ะะนะะ ะะะะะน ะนะะะ ะนะะนะน
|
|
461
|
+
Fingerprint: 11211112162111319211161219132111511
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
```
|
|
465
|
+
รกรรร รรกรก รกรรร รรกรก รณ รรกรก รกรรร รรกรก รณ รรกรก รกรรร รณ รรกรก รรกรก รกรรร รรกรก รณ รกรรร รณ รรกรก รกรรร รกรรร รณ รกรรร รกรรร รกรรร รณ รรกรก รกรรร รรกรก รณ รกรรร รรกรก รกรรร รณ รรรกรก รณ รกรรร รณ รรกรก รรกรก รรกรก รรกรก รณ รรกรก รรกรก รกรรร รณ รรกรก รรกรก รรกรก รณ รรรกรก รณ รรกรก รกรรร รรกรก รณ รกรรร รกรรร รกรรร รกรรร รกรรร รณ รกรรร รรกรก รรกรก รรกรก รณ รรกรก รรกรก รกรรร รณ รรกรก รรกรก รรกรก รณ รกรรร รณ รรรกรก รณ รกรรร รรกรก รรกรก รณ รรกรก รกรรร รณ รรกรก รกรรร รรกรก รณ รรกรก รรกรก รรกรก รกรรร รกรรร รณ รรกรก รรกรก รรกรก รณ รรรกรก รณ รรกรก รกรรร รรกรก รรกรก รณ รรกรก รรกรก รกรรร รณ รรกรก รกรรร รรกรก รรกรก รณ รรกรก รกรรร รรกรก รรกรก รณ รรกรก รรกรก รรกรก รรกรก รกรรร รณ รกรรร รรกรก รรกรก รรกรก รณ รกรรร รรกรก รกรรร รกรรร
|
|
466
|
+
Fingerprint: 121262126213221271421191115212312161516222252218222915212411111712229221922241514122721821262221182226192122822182122621226222213122241211
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
### I want to decode my encoded passphrase in lowercase: `craftwork thus robust dares lullaby`
|
|
470
|
+
|
|
471
|
+
```bash
|
|
472
|
+
cpass decode "-.-. .-. .- ..-. - .-- --- .-. -.- / - .... ..- ... / .-. --- -... ..- ... - / -.. .- .-. . ... / .-.. ..- .-.. .-.. .- -... -.--"
|
|
473
|
+
```
|
|
474
|
+
|
|
475
|
+
Output:
|
|
476
|
+
|
|
477
|
+
```
|
|
478
|
+
craftwork thus robust dares lullaby
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
### I want to decode my encoded passphrase in uppercase: `CRAFTWORK THUS ROBUST DARES LULLABY`
|
|
482
|
+
|
|
483
|
+
```bash
|
|
484
|
+
cpass decode "-.-. .-. .- ..-. - .-- --- .-. -.- / - .... ..- ... / .-. --- -... ..- ... - / -.. .- .-. . ... / .-.. ..- .-.. .-.. .- -... -.--" --upper-case
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
Output:
|
|
488
|
+
|
|
489
|
+
```
|
|
490
|
+
CRAFTWORK THUS ROBUST DARES LULLABY
|
|
491
|
+
```
|
|
492
|
+
|
|
493
|
+
### I want to decode my encoded passphrase in titlecase: `Craftwork Thus Robust Dares Lullaby`
|
|
494
|
+
|
|
495
|
+
```bash
|
|
496
|
+
cpass decode "-.-. .-. .- ..-. - .-- --- .-. -.- / - .... ..- ... / .-. --- -... ..- ... - / -.. .- .-. . ... / .-.. ..- .-.. .-.. .- -... -.--" --title-case
|
|
497
|
+
```
|
|
498
|
+
|
|
499
|
+
Output:
|
|
500
|
+
|
|
501
|
+
```
|
|
502
|
+
Craftwork Thus Robust Dares Lullaby
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
### I want to decode my encoded passphrase and store the value in a `.txt` file
|
|
506
|
+
|
|
507
|
+
```bash
|
|
508
|
+
cpass decode "-.-. .-. .- ..-. - .-- --- .-. -.- / - .... ..- ... / .-. --- -... ..- ... - / -.. .- .-. . ... / .-.. ..- .-.. .-.. .- -... -.--" --output /path/to/your/file.txt
|
|
509
|
+
```
|
|
510
|
+
|
|
511
|
+
### I want to decode my encoded passphrase in *chaotic case*: `crAftwoRk Thus r0Bust dAr3s Lull4by`
|
|
512
|
+
|
|
513
|
+
```bash
|
|
514
|
+
cpass decode "-.-. .-. .- ..-. - .-- --- .-. -.- / - .... ..- ... / .-. ----- -... ..- ... - / -.. .- .-. ...-- ... / .-.. ..- .-.. .-.. ....- -... -.--" --fingerprint 11211112182111518211141216152111711
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
Output:
|
|
518
|
+
|
|
519
|
+
```
|
|
520
|
+
crAftwoRk Thus r0Bust dAr3s Lull4by
|
|
521
|
+
```
|
|
522
|
+
|
|
523
|
+
### I want to decode my encoded password: `Th1sIs4Str0ng-p@ssw0rd!`
|
|
524
|
+
|
|
525
|
+
```bash
|
|
526
|
+
cpass decode "- .... .---- ... .. ... ....- ... - .-. ----- -. --. -....- .--. .--.-. ... ... .-- ----- .-. -.. -.-.--" -f 21312132113113131113113
|
|
527
|
+
```
|
|
528
|
+
|
|
529
|
+
Output:
|
|
530
|
+
|
|
531
|
+
```
|
|
532
|
+
Th1sIs4Str0ng-p@ssw0rd!
|
|
533
|
+
```
|
|
534
|
+
|
|
535
|
+
### I want to decode my `.txt` file
|
|
536
|
+
|
|
537
|
+
```bash
|
|
538
|
+
cpass decode "/path/to/your/file.txt"
|
|
539
|
+
cpass decode "/path/to/your/file.txt" --upper-case
|
|
540
|
+
cpass decode "/path/to/your/file.txt" --title-case
|
|
541
|
+
cpass decode "/path/to/your/file.txt" --fingerprint FINGERPRINT
|
|
542
|
+
```
|
|
543
|
+
|
|
544
|
+
### ๐ Holy sh*t!
|
|
545
|
+
|
|
546
|
+
I want to decode my encoded passphrase!
|
|
547
|
+
|
|
548
|
+
```bash
|
|
549
|
+
cpass decode "รกรรร รรกรก รกรรร รรกรก รณ รรกรก รกรรร รรกรก รณ รรกรก รกรรร รณ รรกรก รรกรก รกรรร รรกรก รณ รกรรร รณ รรกรก รกรรร รกรรร รณ รกรรร รกรรร รกรรร รณ รรกรก รกรรร รรกรก รณ รกรรร รรกรก รกรรร รณ รรรกรก รณ รกรรร รณ รรกรก รรกรก รรกรก รรกรก รณ รรกรก รรกรก รกรรร รณ รรกรก รรกรก รรกรก รณ รรรกรก รณ รรกรก รกรรร รรกรก รณ รกรรร รกรรร รกรรร รกรรร รกรรร รณ รกรรร รรกรก รรกรก รรกรก รณ รรกรก รรกรก รกรรร รณ รรกรก รรกรก รรกรก รณ รกรรร รณ รรรกรก รณ รกรรร รรกรก รรกรก รณ รรกรก รกรรร รณ รรกรก รกรรร รรกรก รณ รรกรก รรกรก รรกรก รกรรร รกรรร รณ รรกรก รรกรก รรกรก รณ รรรกรก รณ รรกรก รกรรร รรกรก รรกรก รณ รรกรก รรกรก รกรรร รณ รรกรก รกรรร รรกรก รรกรก รณ รรกรก รกรรร รรกรก รรกรก รณ รรกรก รรกรก รรกรก รรกรก รกรรร รณ รกรรร รรกรก รรกรก รรกรก รณ รกรรร รรกรก รกรรร รกรรร" -d "รก" -D "ร" -s "รณ" -L russian -f 121262126213221271421191115212312161516222252218222915212411111712229221922241514122721821262221182226192122822182122621226222213122241211
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
```bash
|
|
553
|
+
cpass decode "ะนะะนะ ะะนะ ะะน ะะะนะ ะน ะะนะน ะนะนะน ะะนะ ะนะะน ะท ะน ะะะะ ะะะน ะะะ ะท ะะนะ ะนะนะนะนะน ะนะะะ ะะะน ะะะ ะน ะท ะนะะ ะะน ะะนะ ะะะะนะน ะะะ ะท ะะนะะ ะะะน ะะนะะ ะะนะะ ะะะะะน ะนะะะ ะนะะนะน" -d "ะ" -D "ะน" -s "ะท" -f 11211112162111319211161219132111511
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
Output:
|
|
557
|
+
|
|
558
|
+
```
|
|
559
|
+
ะนะะนะ ะะนะ ะะน ะะะนะ ะน ะะนะน ะนะนะน ะะนะ ะนะะน ะท ะน ะะะะ ะะะน ะะะ ะท ะะนะ ะนะนะนะนะน ะนะะะ ะะะน ะะะ ะน ะท ะนะะ ะะน ะะนะ ะะะะนะน ะะะ ะท ะะนะะ ะะะน ะะนะะ ะะนะะ ะะะะะน ะนะะะ ะนะะนะน
|
|
560
|
+
```
|
|
561
|
+
|
|
562
|
+
```
|
|
563
|
+
crAftwoRk Thus r0Bust dAr3s Lull4by
|
|
564
|
+
```
|
|
565
|
+
|
|
566
|
+
### I want to encode my secret words for my crypto wallet
|
|
567
|
+
|
|
568
|
+
```bash
|
|
569
|
+
cpass encrypto "/path/to/your/secret-words.txt"
|
|
570
|
+
```
|
|
571
|
+
|
|
572
|
+
Output:
|
|
573
|
+
|
|
574
|
+
```
|
|
575
|
+
+----------------+--------------------------------------+
|
|
576
|
+
| Original words | Encoded words |
|
|
577
|
+
+----------------+--------------------------------------+
|
|
578
|
+
| 1. abricot | 1. .- -... .-. .. -.-. --- - |
|
|
579
|
+
| 2. carapuce | 2. -.-. .- .-. .- .--. ..- -.-. . |
|
|
580
|
+
| 3. tristan | 3. - .-. .. ... - .- -. |
|
|
581
|
+
| 4. parapluie | 4. .--. .- .-. .- .--. .-.. ..- .. . |
|
|
582
|
+
| 5. ouvrir | 5. --- ..- ...- .-. .. .-. |
|
|
583
|
+
| 6. rateau | 6. .-. .- - . .- ..- |
|
|
584
|
+
| 7. clavier | 7. -.-. .-.. .- ...- .. . .-. |
|
|
585
|
+
| 8. souris | 8. ... --- ..- .-. .. ... |
|
|
586
|
+
| 9. ordinateur | 9. --- .-. -.. .. -. .- - . ..- .-. |
|
|
587
|
+
| 10. travail | 10. - .-. .- ...- .- .. .-.. |
|
|
588
|
+
| 11. traduire | 11. - .-. .- -.. ..- .. .-. . |
|
|
589
|
+
| 12. oublier | 12. --- ..- -... .-.. .. . .-. |
|
|
590
|
+
+----------------+--------------------------------------+
|
|
591
|
+
```
|
|
592
|
+
|
|
593
|
+
### I want to encode my secret words and store the value in a `.txt` file
|
|
594
|
+
|
|
595
|
+
```bash
|
|
596
|
+
cpass encrypto "/path/to/your/secret-words.txt" --output /path/to/your/encoded-words.txt
|
|
597
|
+
```
|
|
598
|
+
|
|
599
|
+
### I want to decode my encoded secret words
|
|
600
|
+
|
|
601
|
+
```bash
|
|
602
|
+
cpass decrypto "/path/to/your/encoded-secret-words.txt"
|
|
603
|
+
```
|
|
604
|
+
|
|
605
|
+
Output:
|
|
606
|
+
|
|
607
|
+
```
|
|
608
|
+
+--------------------------------------+---------------+
|
|
609
|
+
| Encoded words | Decoded words |
|
|
610
|
+
+--------------------------------------+---------------+
|
|
611
|
+
| 1. .- -... .-. .. -.-. --- - | 1. abricot |
|
|
612
|
+
| 2. -.-. .- .-. .- .--. ..- -.-. . | 2. carapuce |
|
|
613
|
+
| 3. - .-. .. ... - .- -. | 3. tristan |
|
|
614
|
+
| 4. .--. .- .-. .- .--. .-.. ..- .. . | 4. parapluie |
|
|
615
|
+
| 5. --- ..- ...- .-. .. .-. | 5. ouvrir |
|
|
616
|
+
| 6. .-. .- - . .- ..- | 6. rateau |
|
|
617
|
+
| 7. -.-. .-.. .- ...- .. . .-. | 7. clavier |
|
|
618
|
+
| 8. ... --- ..- .-. .. ... | 8. souris |
|
|
619
|
+
| 9. --- .-. -.. .. -. .- - . ..- .-. | 9. ordinateur |
|
|
620
|
+
| 10. - .-. .- ...- .- .. .-.. | 10. travail |
|
|
621
|
+
| 11. - .-. .- -.. ..- .. .-. . | 11. traduire |
|
|
622
|
+
| 12. --- ..- -... .-.. .. . .-. | 12. oublier |
|
|
623
|
+
+--------------------------------------+---------------+
|
|
624
|
+
```
|
|
625
|
+
|
|
626
|
+
### I want to decode my encoded secret words and store the value in a `.txt` file
|
|
627
|
+
|
|
628
|
+
```bash
|
|
629
|
+
cpass decrypto "/path/to/your/encoded-secret-words.txt" --output /path/to/your/decoded-words.txt
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
## ๐ Support me
|
|
633
|
+
|
|
634
|
+
### Liberapay
|
|
635
|
+
|
|
636
|
+
[](https://liberapay.com/gentlhug/donate)
|
|
637
|
+
|
|
638
|
+
### Bitcoin
|
|
639
|
+
|
|
640
|
+
-bc1qpscju34axddyzu40fvwhdzhgj2v0r6dvxxhyda-yellow?logo=bitcoin)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
cpass/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
cpass/main.py,sha256=MREHqRnVmsIxDkvIfIK_qcwjOsvnUtaNwHcAVQVyYP4,15891
|
|
3
|
+
cpass_cli-1.0.0.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
4
|
+
cpass_cli-1.0.0.dist-info/METADATA,sha256=Ceq3AD8UhfZMZ_z0CY-GN3F1tK6Mn71MH1XGtKKHi0s,22541
|
|
5
|
+
cpass_cli-1.0.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
6
|
+
cpass_cli-1.0.0.dist-info/entry_points.txt,sha256=YclPsqbTxxIx7XGEN6iovhVZJ42rr00DoB-oCQ5XIo8,42
|
|
7
|
+
cpass_cli-1.0.0.dist-info/top_level.txt,sha256=1Bv2eYyjYUtbws5wV7E2VVrUGYLG70NmVQovwClK8b0,6
|
|
8
|
+
cpass_cli-1.0.0.dist-info/RECORD,,
|