Metadata-Version: 1.1
Name: pyEnigma
Version: 0.1
Summary: Python Enigma cypher machine simulator.
Home-page: https://github.com/cedricbonhomme/pyEnigma
Author: Christophe Goessen, Cédric Bonhomme
Author-email: cedric@cedricbonhomme.org
License: GPLv3
Description: pyEnigma
        ========
        
        .. image:: https://img.shields.io/travis/cedricbonhomme/pyEnigma/master.svg?style=flat-square
            :target: https://travis-ci.org/cedricbonhomme/pyEnigma
        
        .. image:: https://img.shields.io/coveralls/cedricbonhomme/pyEnigma/master.svg?style=flat-square
           :target: https://coveralls.io/github/cedricbonhomme/pyEnigma?branch=master
        
        
        `pyEnigma <https://github.com/cedricbonhomme/pyEnigma>`_, a  Python Enigma
        cypher machine simulator.
        
        
        Installation
        ------------
        
        .. code:: bash
        
            $ sudo pip install pyenigma
        
        
        Usage
        -----
        
        As a Python module:
        
        .. code:: python
        
            Python 3.5.2 (default, Oct 20 2016, 10:10:10)
            [GCC 6.2.0 20161005] on linux
            Type "help", "copyright", "credits" or "license" for more information.
            >>> from pyenigma import enigma
            >>> from pyenigma import rotor
            >>> print(rotor.ROTOR_GR_III)
        
                Name: III
                Model: German Railway (Rocket)
                Date: 7 February 1941
                Wiring: JVIUBHTCDYAKEQZPOSGXNRMWFL
            >>>
            >>> 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")
            >>> print(engr)
        
                Reflector:
                Name: Reflector A
                Model: None
                Date: None
                Wiring: EJMZALYXVBWFCRQUONTSPIKHGD
        
                Rotor 1:
                Name: I
                Model: Enigma 1
                Date: 1930
                Wiring: EKMFLGDQVZNTOWYHXUSPAIBRCJ
                State: A
        
                Rotor 2:
                Name: II
                Model: Enigma 1
                Date: 1930
                Wiring: AJDKSIRUXBLHWTMCQGZNPYFVOE
                State: B
        
                Rotor 3:
                Name: III
                Model: Enigma 1
                Date: 1930
                Wiring: BDFHJLCPRTXVZNYEIWGAKMUSQO
                State: C
            >>> res = engr.encipher("Hello World")
            >>> print res
            Qgqop Vwoxn
        
        
        Command line:
        
        .. code:: bash
        
            $ echo "Hello World" | enigma ABC A  I II III "AV BS CG DL FU HZ IN KM OW RX"
            Qgqop Vwoxn
        
            $ echo "Qgqop Vwoxn" | enigma ABC A  I II III "AV BS CG DL FU HZ IN KM OW RX"
            Hello World
        
        
        License
        -------
        
        pyEnigma is under `GPLv3 <http://www.gnu.org/licenses/gpl-3.0.txt>`_ license.
        
        
        Author
        ------
        
        * `Christophe Goessen <https://github.com/cgoessen>`_ (initial author)
        * `Cédric Bonhomme <https://www.cedricbonhomme.org>`_
        
        
        Release History
        ===============
        
        0.1 (2017-03-15)
        ------------------
        
        * first release on pypi.
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Security
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
