The project consists of the following files which you can clone/download the Github repository.
The display itself lives in multi_segment_display.js and is implemented as a ES6/ES2015 class. Let’s look at the code, starting with the constructor.
_ColorSchemes object is used as an enumeration for the
ColorScheme property. There are then a number of variables for the content and format of the display which we will see in use later on. Finally there are several function calls to set up the display which I’ll describe in detail in due course. …
This post has an associated video on YouTube.
This project consists of the following files which you can clone/download the Github repository.
The widget is implemented as an ES6/ES2015 class. …
The Caesar Shift Cypher was named after Julius Caesar and is the simplest method of encypherment possible. It consists of shifting letters along by one or more places, so for example if you use a shift of 1 then A becomes B, B becomes C etc.. To decypher the message you just shift letters in the opposite direction. Clearly it lacks sophistication and can easily be cracked, either by trial and error or, if you have a reasonable length of encrypted text, using frequency analysis.
As a little programming exercise I will code the Caesar Shift Cypher in Python, and in a future post will break it with frequency analysis. …