|
| 1 | +Metadata-Version: 1.1 |
| 2 | +Name: pyEnigma |
| 3 | +Version: 0.1 |
| 4 | +Summary: Python Enigma cypher machine simulator. |
| 5 | +Home-page: https://github.com/cedricbonhomme/pyEnigma |
| 6 | +Author: Christophe Goessen, Cédric Bonhomme |
| 7 | +Author-email: cedric@cedricbonhomme.org |
| 8 | +License: GPLv3 |
| 9 | +Description: pyEnigma |
| 10 | + ======== |
| 11 | + |
| 12 | + .. image:: https://img.shields.io/travis/cedricbonhomme/pyEnigma/master.svg?style=flat-square |
| 13 | + :target: https://travis-ci.org/cedricbonhomme/pyEnigma |
| 14 | + |
| 15 | + .. image:: https://img.shields.io/coveralls/cedricbonhomme/pyEnigma/master.svg?style=flat-square |
| 16 | + :target: https://coveralls.io/github/cedricbonhomme/pyEnigma?branch=master |
| 17 | + |
| 18 | + |
| 19 | + `pyEnigma <https://github.com/cedricbonhomme/pyEnigma>`_, a Python Enigma |
| 20 | + cypher machine simulator. |
| 21 | + |
| 22 | + |
| 23 | + Installation |
| 24 | + ------------ |
| 25 | + |
| 26 | + .. code:: bash |
| 27 | + |
| 28 | + $ sudo pip install pyenigma |
| 29 | + |
| 30 | + |
| 31 | + Usage |
| 32 | + ----- |
| 33 | + |
| 34 | + As a Python module: |
| 35 | + |
| 36 | + .. code:: python |
| 37 | + |
| 38 | + Python 3.5.2 (default, Oct 20 2016, 10:10:10) |
| 39 | + [GCC 6.2.0 20161005] on linux |
| 40 | + Type "help", "copyright", "credits" or "license" for more information. |
| 41 | + >>> from pyenigma import enigma |
| 42 | + >>> from pyenigma import rotor |
| 43 | + >>> print(rotor.ROTOR_GR_III) |
| 44 | + |
| 45 | + Name: III |
| 46 | + Model: German Railway (Rocket) |
| 47 | + Date: 7 February 1941 |
| 48 | + Wiring: JVIUBHTCDYAKEQZPOSGXNRMWFL |
| 49 | + >>> |
| 50 | + >>> engr = enigma.Enigma(rotor.ROTOR_Reflector_A, rotor.ROTOR_I, rotor.ROTOR_II, rotor.ROTOR_III, key="ABC", plugs="AV BS CG DL FU HZ IN KM OW RX") |
| 51 | + >>> print(engr) |
| 52 | + |
| 53 | + Reflector: |
| 54 | + Name: Reflector A |
| 55 | + Model: None |
| 56 | + Date: None |
| 57 | + Wiring: EJMZALYXVBWFCRQUONTSPIKHGD |
| 58 | + |
| 59 | + Rotor 1: |
| 60 | + Name: I |
| 61 | + Model: Enigma 1 |
| 62 | + Date: 1930 |
| 63 | + Wiring: EKMFLGDQVZNTOWYHXUSPAIBRCJ |
| 64 | + State: A |
| 65 | + |
| 66 | + Rotor 2: |
| 67 | + Name: II |
| 68 | + Model: Enigma 1 |
| 69 | + Date: 1930 |
| 70 | + Wiring: AJDKSIRUXBLHWTMCQGZNPYFVOE |
| 71 | + State: B |
| 72 | + |
| 73 | + Rotor 3: |
| 74 | + Name: III |
| 75 | + Model: Enigma 1 |
| 76 | + Date: 1930 |
| 77 | + Wiring: BDFHJLCPRTXVZNYEIWGAKMUSQO |
| 78 | + State: C |
| 79 | + >>> res = engr.encipher("Hello World") |
| 80 | + >>> print res |
| 81 | + Qgqop Vwoxn |
| 82 | + |
| 83 | + |
| 84 | + Command line: |
| 85 | + |
| 86 | + .. code:: bash |
| 87 | + |
| 88 | + $ echo "Hello World" | ./cypher_enigma_safe.py ABC A I II III "AV BS CG DL FU HZ IN KM OW RX" |
| 89 | + Qgqop Vwoxn |
| 90 | + |
| 91 | + $ echo "Qgqop Vwoxn" | ./cypher_enigma_safe.py ABC A I II III "AV BS CG DL FU HZ IN KM OW RX" |
| 92 | + Hello World |
| 93 | + |
| 94 | + |
| 95 | + License |
| 96 | + ------- |
| 97 | + |
| 98 | + pyEnigma is under `GPLv3 <http://www.gnu.org/licenses/gpl-3.0.txt>`_ license. |
| 99 | + |
| 100 | + |
| 101 | + Author |
| 102 | + ------ |
| 103 | + |
| 104 | + * `Christophe Goessen <https://github.com/cgoessen>`_ (initial author) |
| 105 | + * `Cédric Bonhomme <https://www.cedricbonhomme.org>`_ |
| 106 | + |
| 107 | + |
| 108 | + Release History |
| 109 | + =============== |
| 110 | + |
| 111 | + 0.1 (2017-03-15) |
| 112 | + ------------------ |
| 113 | + |
| 114 | + * first release on pypi. |
| 115 | + |
| 116 | +Platform: UNKNOWN |
| 117 | +Classifier: Development Status :: 5 - Production/Stable |
| 118 | +Classifier: Environment :: Console |
| 119 | +Classifier: Intended Audience :: Developers |
| 120 | +Classifier: Intended Audience :: Science/Research |
| 121 | +Classifier: Topic :: Security |
| 122 | +Classifier: Operating System :: OS Independent |
| 123 | +Classifier: Programming Language :: Python |
| 124 | +Classifier: Programming Language :: Python :: 2.7 |
| 125 | +Classifier: Programming Language :: Python :: 3.5 |
| 126 | +Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+) |
0 commit comments