Skip to content

Commit

Permalink
release 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Fer14 committed Feb 12, 2024
1 parent ce127c0 commit a7a1537
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Enigma


![logo](logos/white.png)
![](logos/white.png)

A simple Python-library of the famous enigma machine.

Expand Down Expand Up @@ -51,7 +51,7 @@ The EnigmaMachine class takes the following parameters:

* `reflector_wirings`: A string representing the wiring of the reflector. The wiring is a permutation of the 26 letters of the alphabet.

* `plugboard_connections`: A dictionary representing the connections of the plugboard. The keys are the letters of the alphabet, and the values are the letters that they are connected to. For example, if the value of the key "A" is "Z", it means that the letter "A" is connected to the letter "Z".
* `plugboard_wirings`: A dictionary representing the connections of the plugboard. The keys are the letters of the alphabet, and the values are the letters that they are connected to. For example, if the value of the key "A" is "Z", it means that the letter "A" is connected to the letter "Z".

* `rotor_names`: A list of strings, each string represents the name of a rotor. The first string is the name of the rightmost rotor, the second string is the name of the middle rotor, and the third string is the name of the leftmost rotor. The name of a rotor is a string of 26 letters, each letter represents the position of the rotor when the letter "A" is at the top position.

Expand Down Expand Up @@ -81,7 +81,7 @@ Alternatively, you can build you own custom machine with your own set of compone

custom_machine = Machine(
[
PlugBoard(wiring={"A":"B"}),
PlugBoard(wiring={"A":"B"}),
Rotor(wiring="EKMFLGDQVZNTOWYHXUSPAIBRCJ",offset=0),
Reflector(wiring="YRUHQSLDPXNGOKMIEBFZCWVJAT")
]
Expand Down Expand Up @@ -111,4 +111,4 @@ The references that help me build this library are:
- https://www.codesandciphers.org.uk/enigma/example1.htm
- https://www.youtube.com/watch?v=Kz6IlDCyOUY

![logos](logos/black.png)
![](logos/black.png)
Binary file added dist/enigmachine-1.0-py3-none-any.whl
Binary file not shown.
Binary file added dist/enigmachine-1.0.tar.gz
Binary file not shown.
14 changes: 12 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name="enigmachine",
version="0.4",
version="1.0",
packages=find_packages(),
install_requires=[
"tabulate",
Expand All @@ -15,7 +15,17 @@
author="Fernando Cortés",
author_email="[email protected]",
license="MIT",
home_page="https://github.com/Fer14/enigmachine",
url="https://github.com/Fer14/enigmachine",
project_urls={
"Bug Tracker": "https://github.com/Fer14/enigmachine/issues",
"Documentation": "https://github.com/Fer14/enigmachine/",
"Source Code": "https://github.com/Fer14/enigmachine/",
},
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
],
keywords="enigma machine cryptography cipher",
)

0 comments on commit a7a1537

Please sign in to comment.