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.2.tar.gz (6.4 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.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: enigmator-1.0.2.tar.gz
  • Upload date:
  • Size: 6.4 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.2.tar.gz
Algorithm Hash digest
SHA256 154a89d5689273bc2793076d3efddbee26437f07775599e1b9ae65987837232c
MD5 a1dab633c272821f634a09d9d0bf92d6
BLAKE2b-256 2ec19a058e7538cd36ecd52180eee09cbc5ba5ec5d35049be880f655f24ca01c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: enigmator-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9221a959ea8b8604264280d54e583c0046774eea7758a7b6c0e3f041d625478b
MD5 9155f8e1fd449e2424af250ffcb609d2
BLAKE2b-256 64b0f8bc6a1953569d6676a7c3baad4283e2d77bb55d1812d6289c34ab0e6b81

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