decodify 0.1.4__tar.gz → 0.1.5__tar.gz
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.
- decodify-0.1.5/LICENSE +22 -0
- decodify-0.1.5/PKG-INFO +385 -0
- decodify-0.1.5/README.md +351 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/__init__.py +11 -3
- decodify-0.1.5/decodify/algorithms/__init__.py +221 -0
- decodify-0.1.5/decodify/algorithms/ascii.py +44 -0
- decodify-0.1.5/decodify/algorithms/autokey.py +55 -0
- decodify-0.1.5/decodify/algorithms/base32hex.py +54 -0
- decodify-0.1.5/decodify/algorithms/base58_flickr.py +53 -0
- decodify-0.1.5/decodify/algorithms/base58_ripple.py +53 -0
- decodify-0.1.5/decodify/algorithms/base64url.py +55 -0
- decodify-0.1.5/decodify/algorithms/base91.py +105 -0
- decodify-0.1.5/decodify/algorithms/beaufort.py +36 -0
- decodify-0.1.5/decodify/algorithms/columnar_transposition.py +59 -0
- decodify-0.1.5/decodify/algorithms/compression_bz2.py +26 -0
- decodify-0.1.5/decodify/algorithms/compression_gzip.py +29 -0
- decodify-0.1.5/decodify/algorithms/compression_lzma.py +26 -0
- decodify-0.1.5/decodify/algorithms/compression_zlib.py +26 -0
- decodify-0.1.5/decodify/algorithms/decimal_encoding.py +46 -0
- decodify-0.1.5/decodify/algorithms/deflate.py +47 -0
- decodify-0.1.5/decodify/algorithms/escape.py +26 -0
- decodify-0.1.5/decodify/algorithms/gronsfeld.py +43 -0
- decodify-0.1.5/decodify/algorithms/hill.py +80 -0
- decodify-0.1.5/decodify/algorithms/html_decimal.py +33 -0
- decodify-0.1.5/decodify/algorithms/html_hex.py +36 -0
- decodify-0.1.5/decodify/algorithms/octal.py +43 -0
- decodify-0.1.5/decodify/algorithms/playfair.py +80 -0
- decodify-0.1.5/decodify/algorithms/porta.py +46 -0
- decodify-0.1.5/decodify/algorithms/rot18.py +32 -0
- decodify-0.1.5/decodify/algorithms/rot5.py +28 -0
- decodify-0.1.5/decodify/algorithms/scytale.py +50 -0
- decodify-0.1.5/decodify/algorithms/substitution.py +41 -0
- decodify-0.1.5/decodify/algorithms/unicode_codepoint.py +52 -0
- decodify-0.1.5/decodify/algorithms/utf16.py +35 -0
- decodify-0.1.5/decodify/algorithms/utf32.py +35 -0
- decodify-0.1.5/decodify/algorithms/utf8.py +22 -0
- decodify-0.1.5/decodify/algorithms/z85.py +86 -0
- decodify-0.1.5/decodify/decodify.py +406 -0
- decodify-0.1.5/decodify.egg-info/PKG-INFO +385 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify.egg-info/SOURCES.txt +33 -0
- {decodify-0.1.4 → decodify-0.1.5}/setup.py +1 -1
- decodify-0.1.5/tests/test_decodify.py +638 -0
- decodify-0.1.4/PKG-INFO +0 -140
- decodify-0.1.4/README.md +0 -108
- decodify-0.1.4/decodify/algorithms/__init__.py +0 -72
- decodify-0.1.4/decodify/decodify.py +0 -156
- decodify-0.1.4/decodify.egg-info/PKG-INFO +0 -140
- decodify-0.1.4/tests/test_decodify.py +0 -354
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/affine.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/atbash.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/baconian.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/base32.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/base36.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/base45.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/base58.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/base64.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/base85.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/binary.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/brainfuck.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/caesar.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/hex.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/html_entities.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/jwt.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/morse.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/nato.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/polybius.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/punycode.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/quoted_printable.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/rail_fence.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/rot13.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/rot47.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/tap_code.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/unicode_escape.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/url.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/uuencode.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/vigenere.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/algorithms/xor_cipher.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify/cli.py +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify.egg-info/dependency_links.txt +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify.egg-info/entry_points.txt +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/decodify.egg-info/top_level.txt +0 -0
- {decodify-0.1.4 → decodify-0.1.5}/setup.cfg +0 -0
decodify-0.1.5/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
MIT License
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2026 Ishan Oshada
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
decodify-0.1.5/PKG-INFO
ADDED
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: decodify
|
|
3
|
+
Version: 0.1.5
|
|
4
|
+
Summary: Detect and decode (or encode) messages with 29 classic and modern encodings/ciphers.
|
|
5
|
+
Home-page: https://github.com/ishanoshada/decodify
|
|
6
|
+
Author: Ishan Oshada
|
|
7
|
+
Author-email: ishan.kodithuwakku.official@gmail.com
|
|
8
|
+
Keywords: encoding,decoding,cryptography,cipher,decode,encoder,decoder,base64,morse,caesar,vigenere,jwt,base58
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Topic :: Security :: Cryptography
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
19
|
+
Classifier: Intended Audience :: Developers
|
|
20
|
+
Classifier: Development Status :: 4 - Beta
|
|
21
|
+
Requires-Python: >=3.8
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
Dynamic: author
|
|
25
|
+
Dynamic: author-email
|
|
26
|
+
Dynamic: classifier
|
|
27
|
+
Dynamic: description
|
|
28
|
+
Dynamic: description-content-type
|
|
29
|
+
Dynamic: home-page
|
|
30
|
+
Dynamic: keywords
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
Dynamic: requires-python
|
|
33
|
+
Dynamic: summary
|
|
34
|
+
|
|
35
|
+
# Decodify
|
|
36
|
+
|
|
37
|
+
**Decodify** is a Python package that automatically detects, decodes, and encodes messages using **61 encoding formats, classical ciphers, and specialized algorithms**. It provides a Python API and a command-line interface (CLI) with support for file operations and configurable cipher parameters.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Features
|
|
42
|
+
|
|
43
|
+
- **61 algorithms** covering base encodings, text formats, classical ciphers, compression, and historical codes.
|
|
44
|
+
- **Automatic detection** with priority for distinctive encoding formats.
|
|
45
|
+
- **Encoding and decoding** through a unified API and CLI.
|
|
46
|
+
- **Keyed ciphers** with configurable keys and parameters.
|
|
47
|
+
- **File processing** with input and output file support.
|
|
48
|
+
- **Python API** for integration into other applications.
|
|
49
|
+
- **Algorithm listing** to explore all supported formats.
|
|
50
|
+
- **Probability scores** for automatic detection results.
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Supported Algorithms
|
|
55
|
+
|
|
56
|
+
| Category | Supported Algorithms |
|
|
57
|
+
|---|---|
|
|
58
|
+
| Base Encodings | `base32`, `base32hex`, `base36`, `base45`, `base58`, `base58_flickr`, `base58_ripple`, `base64`, `base64url`, `base85`, `base91`, `z85` |
|
|
59
|
+
| Text & Web Encodings | `ascii`, `decimal`, `hex`, `binary`, `octal`, `url`, `escape`, `quoted_printable`, `html_decimal`, `html_entities`, `html_hex`, `unicode_codepoint`, `unicode_escape`, `utf8`, `utf16`, `utf32`, `punycode` |
|
|
60
|
+
| Classical & Modern Ciphers | `affine`, `atbash`, `autokey`, `beaufort`, `caesar`, `gronsfeld`, `hill`, `playfair`, `porta`, `rail_fence`, `scytale`, `substitution`, `vigenere`, `xor`, `rot5`, `rot13`, `rot18`, `rot47` |
|
|
61
|
+
| Historical & Specialty Formats | `baconian`, `brainfuck`, `morse`, `nato`, `polybius`, `tap_code`, `uuencode`, `jwt` |
|
|
62
|
+
| Compression Formats | `bz2`, `deflate`, `gzip`, `lzma`, `zlib` |
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Installation
|
|
67
|
+
|
|
68
|
+
Install from PyPI:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
pip install decodify
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Or install from source:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
git clone https://github.com/Ishanoshada/Decodify.git
|
|
78
|
+
cd Decodify
|
|
79
|
+
pip install -e .
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Quick Start – Python API
|
|
85
|
+
|
|
86
|
+
```python
|
|
87
|
+
from decodify import decode_message, encode_message, list_algorithms
|
|
88
|
+
|
|
89
|
+
# Automatically detect and decode
|
|
90
|
+
decoded, probabilities = decode_message("aGVsbG8=")
|
|
91
|
+
|
|
92
|
+
print(decoded)
|
|
93
|
+
# hello
|
|
94
|
+
|
|
95
|
+
print(probabilities)
|
|
96
|
+
# {'base64': 1.0}
|
|
97
|
+
|
|
98
|
+
# Decode using a specific algorithm
|
|
99
|
+
decoded, _ = decode_message("uryyb", algorithm="rot13")
|
|
100
|
+
print(decoded)
|
|
101
|
+
# hello
|
|
102
|
+
|
|
103
|
+
# Decode with cipher parameters
|
|
104
|
+
decoded, _ = decode_message(
|
|
105
|
+
"ciphertext",
|
|
106
|
+
algorithm="vigenere",
|
|
107
|
+
key="LEMON"
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
decoded, _ = decode_message(
|
|
111
|
+
"Uryyb",
|
|
112
|
+
algorithm="caesar",
|
|
113
|
+
shift=13
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
# Encode messages
|
|
117
|
+
print(encode_message("hello", "base64"))
|
|
118
|
+
# aGVsbG8=
|
|
119
|
+
|
|
120
|
+
print(encode_message("hello", "hex"))
|
|
121
|
+
# 68656c6c6f
|
|
122
|
+
|
|
123
|
+
print(encode_message("SOS", "morse"))
|
|
124
|
+
|
|
125
|
+
print(encode_message("secret", "xor", key="key"))
|
|
126
|
+
|
|
127
|
+
# List available algorithms
|
|
128
|
+
print(list_algorithms())
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Command-Line Interface (CLI)
|
|
134
|
+
|
|
135
|
+
### Display help
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
decodify --help
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### List supported algorithms
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
decodify --list
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Automatic detection and decoding
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
decodify "aGVsbG8="
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Example output:
|
|
154
|
+
|
|
155
|
+
```text
|
|
156
|
+
Decoded Message: hello
|
|
157
|
+
Algorithm Probabilities:
|
|
158
|
+
base64: 1.000
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Decode with a specific algorithm
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
decodify "aGVsbG8=" --algorithm base64
|
|
165
|
+
|
|
166
|
+
decodify "68656c6c6f" --algorithm hex
|
|
167
|
+
|
|
168
|
+
decodify "uryyb" --algorithm rot13
|
|
169
|
+
|
|
170
|
+
decodify ".... . .-.. .-.. ---" --algorithm morse
|
|
171
|
+
|
|
172
|
+
decodify "01101000 01100101 01101100 01101100 01101111" --algorithm binary
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### Encode messages
|
|
176
|
+
|
|
177
|
+
Use `-e` or `--encode` to enable encoding mode.
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
decodify "hello" --algorithm base64 --encode
|
|
181
|
+
|
|
182
|
+
decodify "hello" --algorithm hex --encode
|
|
183
|
+
|
|
184
|
+
decodify "hello" --algorithm binary --encode
|
|
185
|
+
|
|
186
|
+
decodify "hello" --algorithm morse --encode
|
|
187
|
+
|
|
188
|
+
decodify "hello" --algorithm rot13 --encode
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Example output:
|
|
192
|
+
|
|
193
|
+
```text
|
|
194
|
+
Encoded Message: aGVsbG8=
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### Cipher parameters
|
|
198
|
+
|
|
199
|
+
**Caesar cipher**
|
|
200
|
+
|
|
201
|
+
```bash
|
|
202
|
+
# Encode
|
|
203
|
+
decodify "hello" --algorithm caesar --encode --shift 3
|
|
204
|
+
|
|
205
|
+
# Decode
|
|
206
|
+
decodify "khoor" --algorithm caesar --shift 3
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
**Vigenère cipher**
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
# Encode
|
|
213
|
+
decodify "hello" --algorithm vigenere --encode --key SECRET
|
|
214
|
+
|
|
215
|
+
# Decode
|
|
216
|
+
decodify "ciphertext" --algorithm vigenere --key SECRET
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
**XOR cipher**
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
decodify "hello" --algorithm xor --encode --key secret
|
|
223
|
+
|
|
224
|
+
decodify "encoded_text" --algorithm xor --key secret
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
**Rail Fence cipher**
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
decodify "hello" --algorithm rail_fence --encode --rails 3
|
|
231
|
+
|
|
232
|
+
decodify "encoded_text" --algorithm rail_fence --rails 3
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
**Affine cipher**
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
decodify "hello" --algorithm affine --encode --a 5 --b 8
|
|
239
|
+
|
|
240
|
+
decodify "encoded_text" --algorithm affine --a 5 --b 8
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
### File operations
|
|
244
|
+
|
|
245
|
+
Read and decode a file:
|
|
246
|
+
|
|
247
|
+
```bash
|
|
248
|
+
decodify --file encoded.txt
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
Decode using a specific algorithm:
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
decodify --file encoded.txt --algorithm base64
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
Save decoded output:
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
decodify --file encoded.txt --algorithm base64 --output decoded.txt
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
You can also use a positional file path:
|
|
264
|
+
|
|
265
|
+
```bash
|
|
266
|
+
decodify encoded.txt --algorithm base64 --output decoded.txt
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
## CLI Options
|
|
272
|
+
|
|
273
|
+
| Option | Description |
|
|
274
|
+
|---|---|
|
|
275
|
+
| `-h`, `--help` | Display help information |
|
|
276
|
+
| `-f`, `--file` | Read input from a file |
|
|
277
|
+
| `-o`, `--output` | Save the result to a file |
|
|
278
|
+
| `-a`, `--algorithm` | Select a specific algorithm |
|
|
279
|
+
| `-e`, `--encode` | Encode instead of decode |
|
|
280
|
+
| `--key` | Key for keyed ciphers |
|
|
281
|
+
| `--shift` | Caesar cipher shift (default: 3) |
|
|
282
|
+
| `--rails` | Rail Fence rail count (default: 3) |
|
|
283
|
+
| `--a` | Affine cipher coefficient A |
|
|
284
|
+
| `--b` | Affine cipher coefficient B |
|
|
285
|
+
| `-l`, `--list` | List supported algorithms |
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
## Automatic Detection
|
|
290
|
+
|
|
291
|
+
Decodify uses heuristic detection to identify possible encoding formats.
|
|
292
|
+
|
|
293
|
+
Distinctive formats are prioritized, including:
|
|
294
|
+
|
|
295
|
+
- Base64 and other recognizable base encodings
|
|
296
|
+
- Morse code
|
|
297
|
+
- NATO phonetic alphabet
|
|
298
|
+
- Brainfuck
|
|
299
|
+
- Tap Code
|
|
300
|
+
- Polybius
|
|
301
|
+
- Baconian
|
|
302
|
+
- UUEncode
|
|
303
|
+
- JWT
|
|
304
|
+
- Other recognizable formats
|
|
305
|
+
|
|
306
|
+
**Note:** Automatic detection cannot reliably identify every encoding or cipher. Ambiguous classical ciphers such as ROT13, Caesar, Vigenère, XOR, Affine, and Rail Fence should be selected explicitly using `--algorithm` and the required parameters.
|
|
307
|
+
|
|
308
|
+
---
|
|
309
|
+
|
|
310
|
+
## Testing
|
|
311
|
+
|
|
312
|
+
Run the test suite:
|
|
313
|
+
|
|
314
|
+
```bash
|
|
315
|
+
python -m pytest tests/ -v
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
Run tests with coverage:
|
|
319
|
+
|
|
320
|
+
```bash
|
|
321
|
+
python -m pytest tests/ -v --cov=decodify --cov-report=term-missing
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
Current test status:
|
|
325
|
+
|
|
326
|
+
```text
|
|
327
|
+
64 passed
|
|
328
|
+
0 failed
|
|
329
|
+
67% code coverage
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
---
|
|
333
|
+
|
|
334
|
+
## Project Structure
|
|
335
|
+
|
|
336
|
+
```text
|
|
337
|
+
decodify/
|
|
338
|
+
├── algorithms/
|
|
339
|
+
│ ├── __init__.py
|
|
340
|
+
│ ├── base64.py
|
|
341
|
+
│ ├── base32.py
|
|
342
|
+
│ ├── morse.py
|
|
343
|
+
│ ├── caesar.py
|
|
344
|
+
│ ├── ...
|
|
345
|
+
├── __init__.py
|
|
346
|
+
├── cli.py
|
|
347
|
+
└── decodify.py
|
|
348
|
+
|
|
349
|
+
tests/
|
|
350
|
+
└── test_decodify.py
|
|
351
|
+
|
|
352
|
+
setup.py
|
|
353
|
+
README.md
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
---
|
|
357
|
+
|
|
358
|
+
## Contributing
|
|
359
|
+
|
|
360
|
+
Contributions are welcome!
|
|
361
|
+
|
|
362
|
+
To add a new algorithm:
|
|
363
|
+
|
|
364
|
+
1. Create a module under `decodify/algorithms/`.
|
|
365
|
+
2. Implement the detection, decoding, and encoding functions where applicable.
|
|
366
|
+
3. Register the algorithm in `decodify/algorithms/__init__.py`.
|
|
367
|
+
4. Add tests under `tests/`.
|
|
368
|
+
5. Submit a pull request.
|
|
369
|
+
|
|
370
|
+
---
|
|
371
|
+
|
|
372
|
+
## License
|
|
373
|
+
|
|
374
|
+
MIT License
|
|
375
|
+
|
|
376
|
+
## Author
|
|
377
|
+
|
|
378
|
+
**Ishan Oshada**
|
|
379
|
+
|
|
380
|
+
- GitHub: https://github.com/Ishanoshada
|
|
381
|
+
- Repository: https://github.com/Ishanoshada/Decodify
|
|
382
|
+
|
|
383
|
+
---
|
|
384
|
+
|
|
385
|
+
**Decodify – Detect, Decode, and Encode.** 🚀
|