Skip to main content

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

pip install runigma

# Example usage

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,


crypted = machine.process_text('hello world')

# displays: БЮУЦwЛgcЭЕМ

# Command line tools

## runigma

This tool can be used for encipher and decipher text.

runigma --key-file=enigma.keys -s ФСИАР -t HELLOXWORLDX

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.

runigma-sheet > keysheet.txt

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for runigma, version 2019.3
Filename, size File type Python version Upload date Hashes
Filename, size runigma-2019.3-py3-none-any.whl (27.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size runigma-2019.3.tar.gz (22.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page