You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Revise cryptographic ciphers documentation in crypto.md
Updated the documentation for various cryptographic ciphers implemented in `codext`, including details on encoding, parameters, and examples for each cipher.
`trithemius` | text <-> Trithemius ciphertext | `trithemius`, `trithemius_cipher` |
286
+
287
+
```python
288
+
>>> codext.encode("This is a test !", "trithemius")
289
+
'Tikv mx g ambd !'
290
+
>>> codext.decode("Tikv mx g ambd !", "trithemius")
291
+
'This is a test !'
292
+
```
293
+
294
+
-----
295
+
296
+
### VIC Cipher
297
+
298
+
The VIC cipher combines a straddling checkerboard substitution (converting letters to a stream of digits) and an over-encryption based on a modulo-10 sum with eventually a conversion from digits to text.
This is a dynamic encoding, that is, it holds the key. There is no default key, meaning that `vigenere` as the encoding scheme throws a `LookupError` indicating that the _key must be a non-empty alphabetic string_.
0 commit comments