Text Scram
Table of Contents
This page is about my textscram project.
Note, this only works on Gnu/Linux. And in theory other Unix like
This program has really one goal, to change around the alphabet in a prearranged manner and undo it.
Like if I had abc and the user defined way to change it was zfp, abc would be zfp and you could change it back.
Let me show you what it does.
In this first step I show the contents of the file that I end up converting, titled input.txt
Figure 1: prompt
In this second step I show the prompt and the command I used.
textscram encode input.txt out.txt en.txt
Textscram is the name of the executable that I run.
Encode is telling the program to use en.txt as a key and turn the letters in to this key's equivalent. The command goes textscram. Encode to make it scrambled decode to unscramble. * [ ] input file path. * [ ] output file path.
And the file that has the key. the key will be the first 26 chars read from the file.
Figure 2: stat vs program out put
Here I am showing the what happens at the end and that the input file is 702 bytes.
(This program works on larger files but a lot slower)
Figure 3: normal vs scrabled
In this image I show that the files have the same number of spacing, capitals, lowercase letters and punctuation.
Figure 4: normal vs scrambled vs unsrambled
In this last image, I show you the decoding process and the contents of all three files.
Install here
git clone https://github.com/mrchair2157/textscram
cd textscam
sudo/doas make install
that is it. now you can run the program.