http://cls.phroon.net/w/index.php?title=Brion_Cipher&feed=atom&action=historyBrion Cipher - Revision history2024-03-29T05:39:18ZRevision history for this page on the wikiMediaWiki 1.35.0http://cls.phroon.net/w/index.php?title=Brion_Cipher&diff=221&oldid=prevLorikeet: /* Thought Process */2008-02-22T10:34:51Z<p><span dir="auto"><span class="autocomment">Thought Process</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 10:34, 22 February 2008</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l3" >Line 3:</td>
<td colspan="2" class="diff-lineno">Line 3:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Borrowing from [http://red-quill.org/babajaga/library/brions/tharloch.html Tharloch] we know the base cypher (remove spaces, rotate letters backwards by their position [counting from 1 after spaces are removed] in the message). The issue then becomes that this method does not work for the later messages.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Borrowing from [http://red-quill.org/babajaga/library/brions/tharloch.html Tharloch] we know the base cypher (remove spaces, rotate letters backwards by their position [counting from 1 after spaces are removed] in the message). The issue then becomes that this method does not work for the later messages.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>The solution is then to brute force all 26 possible starting rotations, as any others are redundant. To acomplish this, I borrowed heavily from [http://www.cs.utk.edu/~cjohnson/computing/rot13.c an implementation of rot13] in C, but generalized to try all possible initial rotations and changed to backwards rotate by the character's index. The program reads from 'libraries.txt', which needs to be in the same directory as the program, and the spaces removed from the 'libraries.txt' file before running the program. It then outputs all possible translations of each line of the message, as well as the 'key' for that line. That is the index of the first character to create that particular message. All you have to do is look through the output for something that looks <del class="diffchange diffchange-inline">english</del>.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>The solution is then to brute force all 26 possible starting rotations, as any others are redundant. To acomplish this, I borrowed heavily from [http://www.cs.utk.edu/~cjohnson/computing/rot13.c an implementation of rot13] in C, but generalized to try all possible initial rotations and changed to backwards rotate by the character's index. The program reads from 'libraries.txt', which needs to be in the same directory as the program, and the spaces removed from the 'libraries.txt' file before running the program. It then outputs all possible translations of each line of the message, as well as the 'key' for that line. That is the index of the first character to create that particular message. All you have to do is look through the output for something that looks <ins class="diffchange diffchange-inline">English</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td></tr>
</table>Lorikeethttp://cls.phroon.net/w/index.php?title=Brion_Cipher&diff=220&oldid=prevLorikeet: /* Thought Process */2008-02-22T10:34:24Z<p><span dir="auto"><span class="autocomment">Thought Process</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 10:34, 22 February 2008</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l3" >Line 3:</td>
<td colspan="2" class="diff-lineno">Line 3:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Borrowing from [http://red-quill.org/babajaga/library/brions/tharloch.html Tharloch] we know the base cypher (remove spaces, rotate letters backwards by their position [counting from 1 after spaces are removed] in the message). The issue then becomes that this method does not work for the later messages.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Borrowing from [http://red-quill.org/babajaga/library/brions/tharloch.html Tharloch] we know the base cypher (remove spaces, rotate letters backwards by their position [counting from 1 after spaces are removed] in the message). The issue then becomes that this method does not work for the later messages.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>The solution is then to brute force all 26 possible starting rotations, as any others are redundant. To acomplish this, I borrowed heavily from [http://www.cs.utk.edu/~cjohnson/computing/rot13.c an <del class="diffchange diffchange-inline">implimentation </del>of rot13] in C, but generalized to try all possible initial rotations and changed to backwards rotate by the character's index. The program reads from 'libraries.txt', which needs to be in the same directory as the program, and the spaces removed from the 'libraries.txt' file before running the program. It then outputs all possible translations of each line of the message, as well as the 'key' for that line. That is the index of the first character to create that particular message. All you have to do is look through the output for something that looks english.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>The solution is then to brute force all 26 possible starting rotations, as any others are redundant. To acomplish this, I borrowed heavily from [http://www.cs.utk.edu/~cjohnson/computing/rot13.c an <ins class="diffchange diffchange-inline">implementation </ins>of rot13] in C, but generalized to try all possible initial rotations and changed to backwards rotate by the character's index. The program reads from 'libraries.txt', which needs to be in the same directory as the program, and the spaces removed from the 'libraries.txt' file before running the program. It then outputs all possible translations of each line of the message, as well as the 'key' for that line. That is the index of the first character to create that particular message. All you have to do is look through the output for something that looks english.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td></tr>
</table>Lorikeethttp://cls.phroon.net/w/index.php?title=Brion_Cipher&diff=177&oldid=prevPhroon: Added to quest solutions2008-01-08T06:03:15Z<p>Added to quest solutions</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 06:03, 8 January 2008</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l43" >Line 43:</td>
<td colspan="2" class="diff-lineno">Line 43:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></pre></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></pre></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Cryptography]]</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Cryptography<ins class="diffchange diffchange-inline">]] [[Category: Quest Solutions</ins>]]</div></td></tr>
</table>Phroonhttp://cls.phroon.net/w/index.php?title=Brion_Cipher&diff=175&oldid=prevPhroon: Base cipher information from sentinel2008-01-08T04:13:33Z<p>Base cipher information from sentinel</p>
<p><b>New page</b></p><div>==Thought Process==<br />
<br />
Borrowing from [http://red-quill.org/babajaga/library/brions/tharloch.html Tharloch] we know the base cypher (remove spaces, rotate letters backwards by their position [counting from 1 after spaces are removed] in the message). The issue then becomes that this method does not work for the later messages.<br />
<br />
The solution is then to brute force all 26 possible starting rotations, as any others are redundant. To acomplish this, I borrowed heavily from [http://www.cs.utk.edu/~cjohnson/computing/rot13.c an implimentation of rot13] in C, but generalized to try all possible initial rotations and changed to backwards rotate by the character's index. The program reads from 'libraries.txt', which needs to be in the same directory as the program, and the spaces removed from the 'libraries.txt' file before running the program. It then outputs all possible translations of each line of the message, as well as the 'key' for that line. That is the index of the first character to create that particular message. All you have to do is look through the output for something that looks english.<br />
<br />
<pre><br />
#include <stdio.h><br />
// Brion Message brute forcer, by Phroon.<br />
<br />
int main(void)<br />
{<br />
int i,j;<br />
FILE *fp;<br />
char ch;<br />
<br />
for (j=0;j<26;j++){<br />
<br />
fp = fopen("libraries.txt","r");<br />
<br />
i = j;<br />
printf("%d:",j);<br />
while (fscanf(fp,"%c",&ch) != EOF) {<br />
if (ch >= 'a' && ch <= 'z') {<br />
ch = ch - i%26;<br />
<br />
if (ch < 'a')<br />
ch = ch + 26;<br />
} else if (ch >= 'A' && ch <= 'Z') {<br />
ch = ch - i%26;<br />
<br />
if (ch < 'A')<br />
ch = ch + 26;<br />
}<br />
<br />
i++;<br />
if(ch=='\n') i=j;<br />
printf("%c",ch);<br />
}<br />
}<br />
return 0;<br />
}<br />
</pre><br />
<br />
[[Category:Cryptography]]</div>Phroon