Code Monkey home page Code Monkey logo

enigma's People

Contributors

gucio321 avatar ibraimgm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

enigma's Issues

Please clarify valid settings

We know that in the default CLI app only 3 rotors can be used (I,II,III) but that one can "assemble" one with 5 rotors like the latest Enigma machine.

However, I noticed the following while using it:

  • The reflector can only be B or C, anything else (A,D, etc.) is flagged as invalid
  • There is no explanation about the Window parameter, what it means, what are valid settings, etc.

And what about the Plugboard? in the machine it consisted of key pairs but that doesn't seem to be handled by command-line parameters.

How to use this implementation correctly?

I think there are a few things that don't quite add up, so could you please explain how to properly play with this Enigma implementation?

For example, here there is one of the code sheets used by the Germans, in particular OKH Maschinenschlüssel A #39.

(using Datum #20) As you can see, every day (1..31) the settings changed. There is the Walzenlage which is equivalent to your Rotor flag (-r V,II,III).

There is also the Ringstellung 07,18,04 which is the same as letters GRD. However, it is not clear what the Kenngruppen values are used for. Are any of those four triads the --window parameter? or are they something else?

BTW I modified your code so that I can specify the Plugboard setting which in your current version is always NoPlugboard and cannot be changed by the user. By using the plugboard settings from the code sheet, I cannot get it to validate well.

Custom machine only supports basic Enigma M3 but not M4

There are items that are easy to modify so that a custom machine with four (4) rotors could be built. Currently the following do not support an M4 Enigma:

  • enigma.Assemble()
  • enigma.Window()
  • enigma.SetWindow()
  • enigma.Ring()
  • enigma.SetRing()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.