rtty-soda 0.1.4__py3-none-any.whl → 0.1.6__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.
Potentially problematic release.
This version of rtty-soda might be problematic. Click here for more details.
- rtty_soda/encoders/functions.py +3 -0
- rtty_soda/main.py +17 -20
- rtty_soda/main.pyi +59 -0
- {rtty_soda-0.1.4.dist-info → rtty_soda-0.1.6.dist-info}/METADATA +3 -3
- {rtty_soda-0.1.4.dist-info → rtty_soda-0.1.6.dist-info}/RECORD +7 -6
- {rtty_soda-0.1.4.dist-info → rtty_soda-0.1.6.dist-info}/WHEEL +0 -0
- {rtty_soda-0.1.4.dist-info → rtty_soda-0.1.6.dist-info}/entry_points.txt +0 -0
rtty_soda/encoders/functions.py
CHANGED
rtty_soda/main.py
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
# ruff: noqa: PLR0913 - not applicable because we don't call Click Commands directly
|
|
2
|
-
# ruff: noqa: ANN201 - not applicable because the Click Commands are untyped
|
|
3
|
-
# mypy: disable-error-code = "no-untyped-def, misc"
|
|
4
1
|
from pathlib import Path
|
|
5
2
|
|
|
6
3
|
import click
|
|
@@ -38,13 +35,13 @@ CONTEXT_SETTINGS = {"help_option_names": ["-h", "--help"]}
|
|
|
38
35
|
|
|
39
36
|
@click.group(cls=ClickAliasedGroup, context_settings=CONTEXT_SETTINGS)
|
|
40
37
|
@click.version_option(package_name="rtty-soda")
|
|
41
|
-
def cli():
|
|
38
|
+
def cli() -> None:
|
|
42
39
|
pass
|
|
43
40
|
|
|
44
41
|
|
|
45
42
|
@cli.command()
|
|
46
43
|
@click.option("--encoding", "-e", default="base64", show_default=True)
|
|
47
|
-
def genkey_cmd(encoding: str):
|
|
44
|
+
def genkey_cmd(encoding: str) -> None:
|
|
48
45
|
"""Generate Private Key.
|
|
49
46
|
|
|
50
47
|
Encoding: base26 | base36 | base64 | base94
|
|
@@ -57,7 +54,7 @@ def genkey_cmd(encoding: str):
|
|
|
57
54
|
@cli.command()
|
|
58
55
|
@click.argument("private_key_file", type=in_path)
|
|
59
56
|
@click.option("--encoding", "-e", default="base64", show_default=True)
|
|
60
|
-
def pubkey_cmd(private_key_file: Path, encoding: str):
|
|
57
|
+
def pubkey_cmd(private_key_file: Path, encoding: str) -> None:
|
|
61
58
|
"""Get Public Key.
|
|
62
59
|
|
|
63
60
|
Encoding: base26 | base36 | base64 | base94
|
|
@@ -72,7 +69,7 @@ def pubkey_cmd(private_key_file: Path, encoding: str):
|
|
|
72
69
|
@click.argument("password_file", type=in_path)
|
|
73
70
|
@click.option("--encoding", "-e", default="base64", show_default=True)
|
|
74
71
|
@click.option("--profile", "-p", default="sensitive", show_default=True)
|
|
75
|
-
def kdf_cmd(password_file: Path, encoding: str, profile: str):
|
|
72
|
+
def kdf_cmd(password_file: Path, encoding: str, profile: str) -> None:
|
|
76
73
|
"""Key Derivation Function.
|
|
77
74
|
|
|
78
75
|
Encoding: base26 | base36 | base64 | base94
|
|
@@ -94,7 +91,7 @@ def kdf_cmd(password_file: Path, encoding: str, profile: str):
|
|
|
94
91
|
@click.option("--data-encoding", "-e", default="base64", show_default=True)
|
|
95
92
|
@click.option("--compression", "-c", default="zlib", show_default=True)
|
|
96
93
|
@click.option("--output-file", "-o", type=out_path, help="(Optional)")
|
|
97
|
-
def encrypt_public_cmd(
|
|
94
|
+
def encrypt_public_cmd( # noqa: PLR0913
|
|
98
95
|
private_key_file: Path,
|
|
99
96
|
public_key_file: Path,
|
|
100
97
|
message_file: Path,
|
|
@@ -102,7 +99,7 @@ def encrypt_public_cmd(
|
|
|
102
99
|
data_encoding: str,
|
|
103
100
|
compression: str,
|
|
104
101
|
output_file: Path | None,
|
|
105
|
-
):
|
|
102
|
+
) -> None:
|
|
106
103
|
"""Encrypt Message (Public).
|
|
107
104
|
|
|
108
105
|
Encoding: base26 | base36 | base64 | base94 | binary
|
|
@@ -130,14 +127,14 @@ def encrypt_public_cmd(
|
|
|
130
127
|
@click.option("--data-encoding", "-e", default="base64", show_default=True)
|
|
131
128
|
@click.option("--compression", "-c", default="zlib", show_default=True)
|
|
132
129
|
@click.option("--output-file", "-o", type=out_path, help="(Optional)")
|
|
133
|
-
def encrypt_secret_cmd(
|
|
130
|
+
def encrypt_secret_cmd( # noqa: PLR0913
|
|
134
131
|
key_file: Path,
|
|
135
132
|
message_file: Path,
|
|
136
133
|
key_encoding: str,
|
|
137
134
|
data_encoding: str,
|
|
138
135
|
compression: str,
|
|
139
136
|
output_file: Path | None,
|
|
140
|
-
):
|
|
137
|
+
) -> None:
|
|
141
138
|
"""Encrypt Message (Secret).
|
|
142
139
|
|
|
143
140
|
Encoding: base26 | base36 | base64 | base94 | binary
|
|
@@ -162,14 +159,14 @@ def encrypt_secret_cmd(
|
|
|
162
159
|
@click.option("--data-encoding", "-e", default="base64", show_default=True)
|
|
163
160
|
@click.option("--compression", "-c", default="zlib", show_default=True)
|
|
164
161
|
@click.option("--output-file", "-o", type=out_path, help="(Optional)")
|
|
165
|
-
def encrypt_password_cmd(
|
|
162
|
+
def encrypt_password_cmd( # noqa: PLR0913
|
|
166
163
|
password_file: Path,
|
|
167
164
|
message_file: Path,
|
|
168
165
|
kdf_profile: str,
|
|
169
166
|
data_encoding: str,
|
|
170
167
|
compression: str,
|
|
171
168
|
output_file: Path | None,
|
|
172
|
-
):
|
|
169
|
+
) -> None:
|
|
173
170
|
"""Encrypt Message (Password).
|
|
174
171
|
|
|
175
172
|
KDF profile: interactive | moderate | sensitive
|
|
@@ -198,7 +195,7 @@ def encrypt_password_cmd(
|
|
|
198
195
|
@click.option("--data-encoding", "-e", default="base64", show_default=True)
|
|
199
196
|
@click.option("--compression", "-c", default="zlib", show_default=True)
|
|
200
197
|
@click.option("--output-file", "-o", type=out_path, help="(Optional)")
|
|
201
|
-
def decrypt_public_cmd(
|
|
198
|
+
def decrypt_public_cmd( # noqa: PLR0913
|
|
202
199
|
private_key_file: Path,
|
|
203
200
|
public_key_file: Path,
|
|
204
201
|
message_file: Path,
|
|
@@ -206,7 +203,7 @@ def decrypt_public_cmd(
|
|
|
206
203
|
data_encoding: str,
|
|
207
204
|
compression: str,
|
|
208
205
|
output_file: Path | None,
|
|
209
|
-
):
|
|
206
|
+
) -> None:
|
|
210
207
|
"""Decrypt Message (Public).
|
|
211
208
|
|
|
212
209
|
Encoding: base26 | base36 | base64 | base94 | binary
|
|
@@ -234,14 +231,14 @@ def decrypt_public_cmd(
|
|
|
234
231
|
@click.option("--data-encoding", "-e", default="base64", show_default=True)
|
|
235
232
|
@click.option("--compression", "-c", default="zlib", show_default=True)
|
|
236
233
|
@click.option("--output-file", "-o", type=out_path, help="(Optional)")
|
|
237
|
-
def decrypt_secret_cmd(
|
|
234
|
+
def decrypt_secret_cmd( # noqa: PLR0913
|
|
238
235
|
key_file: Path,
|
|
239
236
|
message_file: Path,
|
|
240
237
|
key_encoding: str,
|
|
241
238
|
data_encoding: str,
|
|
242
239
|
compression: str,
|
|
243
240
|
output_file: Path | None,
|
|
244
|
-
):
|
|
241
|
+
) -> None:
|
|
245
242
|
"""Decrypt Message (Secret).
|
|
246
243
|
|
|
247
244
|
Encoding: base26 | base36 | base64 | base94 | binary
|
|
@@ -266,14 +263,14 @@ def decrypt_secret_cmd(
|
|
|
266
263
|
@click.option("--data-encoding", "-e", default="base64", show_default=True)
|
|
267
264
|
@click.option("--compression", "-c", default="zlib", show_default=True)
|
|
268
265
|
@click.option("--output-file", "-o", type=out_path, help="(Optional)")
|
|
269
|
-
def decrypt_password_cmd(
|
|
266
|
+
def decrypt_password_cmd( # noqa: PLR0913
|
|
270
267
|
password_file: Path,
|
|
271
268
|
message_file: Path,
|
|
272
269
|
kdf_profile: str,
|
|
273
270
|
data_encoding: str,
|
|
274
271
|
compression: str,
|
|
275
272
|
output_file: Path | None,
|
|
276
|
-
):
|
|
273
|
+
) -> None:
|
|
277
274
|
"""Decrypt Message (Password).
|
|
278
275
|
|
|
279
276
|
KDF profile: interactive | moderate | sensitive
|
|
@@ -301,7 +298,7 @@ def decrypt_password_cmd(
|
|
|
301
298
|
@click.option("--output-file", "-o", type=out_path, help="(Optional)")
|
|
302
299
|
def encode_cmd(
|
|
303
300
|
in_encoding: str, out_encoding: str, file: Path, output_file: Path | None
|
|
304
|
-
):
|
|
301
|
+
) -> None:
|
|
305
302
|
"""Encode File.
|
|
306
303
|
|
|
307
304
|
Encoding: base26 | base36 | base64 | base94 | binary
|
rtty_soda/main.pyi
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
|
|
3
|
+
def cli() -> None: ...
|
|
4
|
+
def genkey_cmd(encoding: str) -> None: ...
|
|
5
|
+
def pubkey_cmd(private_key_file: Path, encoding: str) -> None: ...
|
|
6
|
+
def kdf_cmd(password_file: Path, encoding: str, profile: str) -> None: ...
|
|
7
|
+
def encrypt_public_cmd(
|
|
8
|
+
private_key_file: Path,
|
|
9
|
+
public_key_file: Path,
|
|
10
|
+
message_file: Path,
|
|
11
|
+
key_encoding: str,
|
|
12
|
+
data_encoding: str,
|
|
13
|
+
compression: str,
|
|
14
|
+
output_file: Path | None,
|
|
15
|
+
) -> None: ...
|
|
16
|
+
def encrypt_secret_cmd(
|
|
17
|
+
key_file: Path,
|
|
18
|
+
message_file: Path,
|
|
19
|
+
key_encoding: str,
|
|
20
|
+
data_encoding: str,
|
|
21
|
+
compression: str,
|
|
22
|
+
output_file: Path | None,
|
|
23
|
+
) -> None: ...
|
|
24
|
+
def encrypt_password_cmd(
|
|
25
|
+
password_file: Path,
|
|
26
|
+
message_file: Path,
|
|
27
|
+
kdf_profile: str,
|
|
28
|
+
data_encoding: str,
|
|
29
|
+
compression: str,
|
|
30
|
+
output_file: Path | None,
|
|
31
|
+
) -> None: ...
|
|
32
|
+
def decrypt_public_cmd(
|
|
33
|
+
private_key_file: Path,
|
|
34
|
+
public_key_file: Path,
|
|
35
|
+
message_file: Path,
|
|
36
|
+
key_encoding: str,
|
|
37
|
+
data_encoding: str,
|
|
38
|
+
compression: str,
|
|
39
|
+
output_file: Path | None,
|
|
40
|
+
) -> None: ...
|
|
41
|
+
def decrypt_secret_cmd(
|
|
42
|
+
key_file: Path,
|
|
43
|
+
message_file: Path,
|
|
44
|
+
key_encoding: str,
|
|
45
|
+
data_encoding: str,
|
|
46
|
+
compression: str,
|
|
47
|
+
output_file: Path | None,
|
|
48
|
+
) -> None: ...
|
|
49
|
+
def decrypt_password_cmd(
|
|
50
|
+
password_file: Path,
|
|
51
|
+
message_file: Path,
|
|
52
|
+
kdf_profile: str,
|
|
53
|
+
data_encoding: str,
|
|
54
|
+
compression: str,
|
|
55
|
+
output_file: Path | None,
|
|
56
|
+
) -> None: ...
|
|
57
|
+
def encode_cmd(
|
|
58
|
+
in_encoding: str, out_encoding: str, file: Path, output_file: Path | None
|
|
59
|
+
) -> None: ...
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: rtty-soda
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: A CLI tool for Unix-like environments to encrypt a RTTY session using NaCl
|
|
5
5
|
Keywords: cli,encryption,libsodium,nacl,rtty
|
|
6
6
|
Author: Theo Saveliev
|
|
@@ -54,8 +54,8 @@ A CLI tool for Unix-like environments to encrypt a RTTY session using NaCl.
|
|
|
54
54
|
#### Docker
|
|
55
55
|
|
|
56
56
|
```
|
|
57
|
-
% docker run -it --rm -h rtty-soda -v .:/app/host nett/rtty-soda:0.1.
|
|
58
|
-
% docker run -it --rm -h rtty-soda -v .:/app/host nett/rtty-soda:0.1.
|
|
57
|
+
% docker run -it --rm -h rtty-soda -v .:/app/host nett/rtty-soda:0.1.6
|
|
58
|
+
% docker run -it --rm -h rtty-soda -v .:/app/host nett/rtty-soda:0.1.6-tools
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
|
|
@@ -9,10 +9,11 @@ rtty_soda/encoders/__init__.py,sha256=-5_g7rhBSJ9jjRtuNStdG_bUf19YTeoF1M7d-xJZml
|
|
|
9
9
|
rtty_soda/encoders/base26_encoder.py,sha256=75pytJmImUjI0bEy1nVH5x_IBTaxF5FkeLX8YlYaOms,523
|
|
10
10
|
rtty_soda/encoders/base36_encoder.py,sha256=bfrpFq5TTyAK8LWnWpCVGhoyWniNqpHaAHXQldlvRhY,539
|
|
11
11
|
rtty_soda/encoders/base94_encoder.py,sha256=DBuTq1qfehGgiQdrshZi_01wYcppkzBli4Jz5cRUylg,527
|
|
12
|
-
rtty_soda/encoders/functions.py,sha256=
|
|
13
|
-
rtty_soda/main.py,sha256=
|
|
12
|
+
rtty_soda/encoders/functions.py,sha256=kCjF4rfdHhBmgY2IjvtmIk0vibXa5fdfqJ5Ao5AXvuc,1349
|
|
13
|
+
rtty_soda/main.py,sha256=lltu7rmjtPCGeyq-PZyUesjlkEiJJMoje6n2y5sdxxc,10392
|
|
14
|
+
rtty_soda/main.pyi,sha256=YAp1SHDYOCaDbGztNsVEn9F6Y2bXOLK2CjBcycZi3kA,1517
|
|
14
15
|
rtty_soda/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
-
rtty_soda-0.1.
|
|
16
|
-
rtty_soda-0.1.
|
|
17
|
-
rtty_soda-0.1.
|
|
18
|
-
rtty_soda-0.1.
|
|
16
|
+
rtty_soda-0.1.6.dist-info/WHEEL,sha256=-neZj6nU9KAMg2CnCY6T3w8J53nx1kFGw_9HfoSzM60,79
|
|
17
|
+
rtty_soda-0.1.6.dist-info/entry_points.txt,sha256=tFROKkaDoE_p5tM2ko7MoAjWBFurchcw3j-MdObxBU0,45
|
|
18
|
+
rtty_soda-0.1.6.dist-info/METADATA,sha256=fGbphjNals1ayN-Hnc_06asilnBFMSrdVRNR6x7Prfc,6629
|
|
19
|
+
rtty_soda-0.1.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|