Skip to content

Commit 22d83db

Browse files
committed
Slightly modified names of some codecs
1 parent d2de138 commit 22d83db

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

codext/crypto/rotn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ def decode(text, errors="strict"):
3232
return decode
3333

3434

35-
add("rotN", rot_encode, rot_decode, r"(?i)rot[-_]?([1-9]|1[0-9]|2[0-5])$")
35+
add("rot", rot_encode, rot_decode, r"(?i)rot[-_]?([1-9]|1[0-9]|2[0-5])$")
3636

codext/crypto/shift.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ def encode(text, errors="strict"):
2121
return encode
2222

2323

24-
add("shiftN", ord_shift_encode, ord_shift_decode,
24+
add("shift", ord_shift_encode, ord_shift_decode,
2525
r"(?i)(?:ord(?:inal)?[-_]?)?shift[-_]?([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$")
2626

codext/crypto/xor_byte.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ def encode(text, errors="strict"):
2121
return encode
2222

2323

24-
add("xorN", xor_byte_encode, xor_byte_encode, r"(?i)xor[-_]?([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$")
24+
add("xor", xor_byte_encode, xor_byte_encode, r"(?i)xor[-_]?([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$")
2525

docs/ciphers.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ This is a dynamic encoding, that is, it can be called with an integer to define
115115

116116
**Codec** | **Conversions** | **Aliases** | **Comment**
117117
:---: | :---: | --- | ---
118-
`rotN` | text <-> rot(1) ciphertext | `rot1`, `rot-1`, `rot_1` |
119-
`rotN` | text <-> rot(X) ciphertext | ... |
120-
`rotN` | text <-> rot(25) ciphertext | `rot25`, `rot-25`, `rot_25` |
118+
`rot` | text <-> rot(1) ciphertext | `rot1`, `rot-1`, `rot_1` |
119+
`rot` | text <-> rot(X) ciphertext | ... |
120+
`rot` | text <-> rot(25) ciphertext | `rot25`, `rot-25`, `rot_25` |
121121

122122
```python
123123
>>> codext.encode("this is a test", "rot-15")
@@ -136,9 +136,9 @@ This is a dynamic encoding, that is, it can be called with an integer to define
136136

137137
**Codec** | **Conversions** | **Aliases** | **Comment**
138138
:---: | :---: | --- | ---
139-
`shiftN` | text <-> shift(1) ciphertext | `shift1`, `shift-1`, `shift_1` |
140-
`shiftN` | text <-> shift(X) ciphertext | ... |
141-
`shiftN` | text <-> shift(255) ciphertext | `shift255`, `shift-255`, `shift_255` |
139+
`shift` | text <-> shift(1) ciphertext | `shift1`, `shift-1`, `shift_1` |
140+
`shift` | text <-> shift(X) ciphertext | ... |
141+
`shift` | text <-> shift(255) ciphertext | `shift255`, `shift-255`, `shift_255` |
142142

143143
```python
144144
>>> codext.encode("this is a test", "shift-3")
@@ -157,9 +157,9 @@ This is a dynamic encoding, that is, it can be called with an integer to define
157157

158158
**Codec** | **Conversions** | **Aliases** | **Comment**
159159
:---: | :---: | --- | ---
160-
`xorN` | text <-> XOR(1) ciphertext | `XOR1`, `xor1`, `xor-1`, `xor_1` |
161-
`xorN` | text <-> XOR(X) ciphertext | ... |
162-
`xorN` | text <-> XOR(255) ciphertext | `XOR255`, `xor255`, `xor-255`, `xor_255` |
160+
`xor` | text <-> XOR(1) ciphertext | `XOR1`, `xor1`, `xor-1`, `xor_1` |
161+
`xor` | text <-> XOR(X) ciphertext | ... |
162+
`xor` | text <-> XOR(255) ciphertext | `XOR255`, `xor255`, `xor-255`, `xor_255` |
163163

164164
```python
165165
>>> codext.encode("this is a test", "xor-10")

0 commit comments

Comments
 (0)