Skip to content

Instantly share code, notes, and snippets.

View CharlGottschalk's full-sized avatar

Charl Gottschalk CharlGottschalk

View GitHub Profile
<?php namespace App\Services;
/**
* A PHP version of the Enigma machine.
* Wikipedia: http://en.wikipedia.org/wiki/Enigma_machine
*
* This might not be an accurate representation. I have never seen, nor used an enigma machine.
* This class was created by reading the article at http://enigma.louisedade.co.uk/howitworks.html.
*
* Usage:
*