This is an L-system interpreter; it utilizes the Turtle Graphics library in Python for visualizing any L-System drawing instructions. Lindenmayer Systems (L-Systems) were first created by biologist Aristid Lindenmayer for modeling plant structures and growth patterns, however, they can also be used for other procedurally generated designs such as fractals. An L-System is created with an axiom, one or more redrawing rules, and other specified values such as turn angle, line length, and number of iterations (i.e. how many times the redrawing rules are applied).
Example: Axiom: F Redrawing Rule: F → -F++F- δ: 45°
Where 'F' means draw forward, '+' is turn right by δ, and '-' is turn left by δ; other functionalities for drawing exist as well. The above example will create a "Lévy Curve" which can be seen in the video above.
The code can be found on my github.
This is a simple multi-step encryption Algorithm based on the Vigenère Cipher.
The possible encryptable values range from ASCII/Unicode 32 to 126 (inclusive).
For
encryption, each character is shifted by the corresponding ASCII value in the key, the shifted
ASCII value is then converted from base-10 (decimal) to base-4, and finally the new base-4
number is mapped to one of four directional arrow symbols. The decryption process is the
inverse.
Plaintext: "This is a secret."
Generated OTP key: 99j<(S;`2k(2bl8o>
Ciphertext: ▾◂▴▾◂◂▾▾▾▴◂ ◂▴▴▾◂▴▴▾◂▾▴ ▴▾◂◂▴▾▴◂▴▾▴ ▾▴▾▾◂▾▾▴▴▾▴ ▴▾▾◂▾▾▴
The code can be found on my github.