Skip to main content

Package for decrypting messages with an enigma machine

Project description

De(s)cription

This is a python package for enrypting messages with the historic enigma machine. I spent quite some time trying to find a suitable existing project and ended up implementing it myself.

This library answers the question no one asked:

"How can I annoy my surroundings by sending them trivial encrypted messages and make them go through the process of deciphering?"

No dependecies to other python packages necessary to decrypt messages and free for use and further adaption (MIT license).

Usage

from enigmator import ROTOR_I, ROTOR_II, ROTOR_III, ROTOR_IV, ROTOR_V
from enigmator import REFLECTOR_A, REFLECTOR_B, REFLECTOR_C
from enigmator import Enigma
from enigmator import Plugboard

EnigmaMachine = Enigma(reflector=REFLECTOR_B, 
                       left_rotor=ROTOR_III, 
                       middle_rotor=ROTOR_II, 
                       right_rotor=ROTOR_I, 
                       rotor_positions="16 10 1",
                       ring_positions="3 1 17",
                       plugboard=Plugboard("CE KL FP MD")
                       )

x=EnigmaMachine.encipher('Jeder Mensch sollte wissen, wie man Enigma-Maschine verwendet.')

print('Result is:')
print(x)

Result is:

LVUBS FKTKJZ EXDYQP XFYEHV, AZS BVR WBGXXW-CTYXLRDK LMTLDALNQ.

Resources & Acknowledgment:

https://web.archive.org/web/20060720040135/http://members.fortunecity.com/jpeschel/gillog1.htm

http://www.softdoc.de/mr/de/downloads/files/EnigmaTechnischeDetails.pdf

https://www.youtube.com/watch?v=RzWB5jL5RX0

https://github.com/mikepound/enigma

Project details


Download files

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

Source Distribution

enigmator-1.0.3.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

enigmator-1.0.3-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file enigmator-1.0.3.tar.gz.

File metadata

  • Download URL: enigmator-1.0.3.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.7

File hashes

Hashes for enigmator-1.0.3.tar.gz
Algorithm Hash digest
SHA256 22ccda32184e5bd5a6e1b7dee6ed429b5e39a822bc526d8ec6674316d3a959ff
MD5 f33b7c6b5c173ca752d1f25aa6570b0c
BLAKE2b-256 5dd5431cfc1e9a3f450c2bbefd6fdbb2becdcedb69f187ae15383536df211d26

See more details on using hashes here.

File details

Details for the file enigmator-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: enigmator-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.7

File hashes

Hashes for enigmator-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b2308e154ebefaa3944ad9884afe4046cf27cab32f56a2743f8883c45e32e2dc
MD5 453cfd4266f4e84dbf203196c3b930ec
BLAKE2b-256 8237a86362d74ab20b730fb03c1a129f38530290b248062c9fc2f12dd920f560

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page