RuNigma is a fictional cypher machine inspired by World War 2s Enigma Machines.
Project description
# periodic
RuNigma is a fictional cypher machine inspired by World War 2's Enigma Machines.
# Setup
```bash
pip install runigma
```
# Example usage
```python
from runigma import RuNigmaMachine
rotors = 'Ё Ь Д Н Й'
reflector = 'Ш'
ring_settings = 'a _ y g Б'
plugboard_settings = 'xЕ hЬ КМ Тn iЗ АЛ ЮЫ Бt z8 ОШ wЯ y0 a7 4Ъ СЖ p6 Эe g_ 2b dc'
machine = RuNigmaMachine.from_key_sheet(rotors=rotors, reflector=reflector, ring_settings=ring_settings,
plugboard_settings=plugboard_settings)
machine.set_display('ЯХ3ОЪ')
crypted = machine.process_text('hello world')
print(crypted)
# displays: БЮУЦwЛgcЭЕМ
```
# Command line tools
## runigma
This tool can be used for encipher and decipher text.
```bash
runigma --key-file=enigma.keys -s ФСИАР -t HELLOXWORLDX
```
```bash
runigma -r A Б В Г Д -i a b c d -p AB CD EF GH IJ KL MN -u Ф -s АУГСД
```
## runigma-sheet
This tool can be used for generate new key sheet file.
```bash
runigma-sheet > keysheet.txt
```
RuNigma is a fictional cypher machine inspired by World War 2's Enigma Machines.
# Setup
```bash
pip install runigma
```
# Example usage
```python
from runigma import RuNigmaMachine
rotors = 'Ё Ь Д Н Й'
reflector = 'Ш'
ring_settings = 'a _ y g Б'
plugboard_settings = 'xЕ hЬ КМ Тn iЗ АЛ ЮЫ Бt z8 ОШ wЯ y0 a7 4Ъ СЖ p6 Эe g_ 2b dc'
machine = RuNigmaMachine.from_key_sheet(rotors=rotors, reflector=reflector, ring_settings=ring_settings,
plugboard_settings=plugboard_settings)
machine.set_display('ЯХ3ОЪ')
crypted = machine.process_text('hello world')
print(crypted)
# displays: БЮУЦwЛgcЭЕМ
```
# Command line tools
## runigma
This tool can be used for encipher and decipher text.
```bash
runigma --key-file=enigma.keys -s ФСИАР -t HELLOXWORLDX
```
```bash
runigma -r A Б В Г Д -i a b c d -p AB CD EF GH IJ KL MN -u Ф -s АУГСД
```
## runigma-sheet
This tool can be used for generate new key sheet file.
```bash
runigma-sheet > keysheet.txt
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
runigma-2019.3.tar.gz
(22.2 kB
view details)
Built Distribution
runigma-2019.3-py3-none-any.whl
(27.2 kB
view details)
File details
Details for the file runigma-2019.3.tar.gz
.
File metadata
- Download URL: runigma-2019.3.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2528697b18f6d714a94d0d9f502507da1b64da78840783bec09062590d526ba |
|
MD5 | 7a1cfaab6e7fd19c9ed68cb665353426 |
|
BLAKE2b-256 | 9fbf5114fc23f7b6f3d1ebc41d0858446de78e8f09200d67e93d65dc9fc84660 |
File details
Details for the file runigma-2019.3-py3-none-any.whl
.
File metadata
- Download URL: runigma-2019.3-py3-none-any.whl
- Upload date:
- Size: 27.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | caa13b5b26d2a4d496054043da0af17c4625abfede386c827732ab98320afd28 |
|
MD5 | ef4b955ddd8fe29d4919d0d80387ea4b |
|
BLAKE2b-256 | cd07c6c12f46c3ed4957767f56541aab68bd38611f930ebede934f2c370e48d8 |