<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>An encryption algorithm</title>
        <description>Hello there,
Im not sure this is the right section, but feel free to move the topic.

The thing is, I came across an algorithm and it appears to be a custom. Since I have nothing better to do I've decided to try figure it out, but with no success.

Here are the strings and the result after the encryption:
123 = 278F98
1235 = 278F98E3
1234567890 = 278F98DBD882B5F084A8
qwerty = 5F065405015A
* result is in hex

Looking at the first three it seemed, well, easy, but.... you know...
Hope someone could help me.

Cheers and thank in advance.</description>
        <link>http://sla.ckers.org/forum/read.php?12,15565,15565#msg-15565</link>
        <lastBuildDate>Sun, 19 May 2013 11:44:49 -0500</lastBuildDate>
        <generator>Phorum 5.2.15a</generator>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?12,15565,17811#msg-17811</guid>
            <title>Re: An encryption algorithm</title>
            <link>http://sla.ckers.org/forum/read.php?12,15565,17811#msg-17811</link>
            <description><![CDATA[123 = 278F98<br />
1235 = 278F98E3<br />
321 = E18D5C<br />
<br />
Note the 2 in the 2nd position does not get encrypted the same on the third line.  So a table like you are suggesting does not work in this case.  It appears that the preceding characters affect how each character is hashed but not any of the subsequent characters.<br />
<br />
[Edit:]  I do find it curious that 2 maps to 8F on the first two lines (when preceded by a 1) and 2 maps to 8D on the third line (when preceded by a 3). Perhaps 22 hashes to __8E ?  Unfortunately, not having access to the algorithm (even as a black box) means it's next to impossible to test such things...]]></description>
            <dc:creator>thornmaker</dc:creator>
            <category>Projects</category>
            <pubDate>Wed, 28 Nov 2007 01:24:31 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?12,15565,17792#msg-17792</guid>
            <title>Re: An encryption algorithm</title>
            <link>http://sla.ckers.org/forum/read.php?12,15565,17792#msg-17792</link>
            <description><![CDATA[123 = 278F98<br />
1235 = 278F98E3<br />
1234567890 = 278F98DBD882B5F084A8<br />
qwerty = 5F065405015A<br />
<br />
You simply can create a table like this to decode anything you want:<br />
\|pos.1|pos2|...<br />
1|27   |?   |...<br />
2|?    |8F  |...<br />
.<br />
.<br />
.]]></description>
            <dc:creator>buherator</dc:creator>
            <category>Projects</category>
            <pubDate>Tue, 27 Nov 2007 09:29:29 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?12,15565,16635#msg-16635</guid>
            <title>Re: An encryption algorithm</title>
            <link>http://sla.ckers.org/forum/read.php?12,15565,16635#msg-16635</link>
            <description><![CDATA[btw, I take that back, I had a new line on that.<br />
<br />
SHA1 (&quot;TestPassword&quot;) = 6250625b226df62870ae23af8d3fac0760d71588]]></description>
            <dc:creator>id</dc:creator>
            <category>Projects</category>
            <pubDate>Sun, 07 Oct 2007 20:19:25 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?12,15565,16630#msg-16630</guid>
            <title>Re: An encryption algorithm</title>
            <link>http://sla.ckers.org/forum/read.php?12,15565,16630#msg-16630</link>
            <description><![CDATA[ZX Wrote:<br />
-------------------------------------------------------<br />
&gt; 123 = 278F98<br />
&gt; 1235 = 278F98E3<br />
&gt; 1234567890 = 278F98DBD882B5F084A8<br />
<br />
From this I can guess it should be trivial to break any such encrypted string with a known plaintext attack, if you have a reliable way of doing it. Sometimes knowing the actual algorythm is not needed ;)]]></description>
            <dc:creator>Mordred</dc:creator>
            <category>Projects</category>
            <pubDate>Sun, 07 Oct 2007 16:30:22 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?12,15565,16382#msg-16382</guid>
            <title>Re: An encryption algorithm</title>
            <link>http://sla.ckers.org/forum/read.php?12,15565,16382#msg-16382</link>
            <description><![CDATA[sha1 of TestPassword is db97dde4c15810646b3ac15fcc1b8a25dc4c7fcb<br />
<br />
any *NIX box should have md5 and at least sha1 installed, easy to test.]]></description>
            <dc:creator>id</dc:creator>
            <category>Projects</category>
            <pubDate>Sat, 29 Sep 2007 18:24:41 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?12,15565,16381#msg-16381</guid>
            <title>Re: An encryption algorithm</title>
            <link>http://sla.ckers.org/forum/read.php?12,15565,16381#msg-16381</link>
            <description><![CDATA[Sha-1 is 40 chars long: http://en.wikipedia.org/wiki/SHA_hash_functions#SHA-1_hashes]]></description>
            <dc:creator>Spyware</dc:creator>
            <category>Projects</category>
            <pubDate>Sat, 29 Sep 2007 17:53:31 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?12,15565,16378#msg-16378</guid>
            <title>Re: An encryption algorithm</title>
            <link>http://sla.ckers.org/forum/read.php?12,15565,16378#msg-16378</link>
            <description><![CDATA[Just so I don't have to start a new thread, does anyone know of an algorithm that's 40 characters long? I ran it through hashmaster and it didn't come up with anything.<br />
<br />
TestPassword - 52BF31F50EABC35D14D1D91D3DC7D0B8BB955971<br />
<br />
- Ghozt]]></description>
            <dc:creator>Ghozt</dc:creator>
            <category>Projects</category>
            <pubDate>Sat, 29 Sep 2007 17:42:11 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?12,15565,16373#msg-16373</guid>
            <title>Re: An encryption algorithm</title>
            <link>http://sla.ckers.org/forum/read.php?12,15565,16373#msg-16373</link>
            <description><![CDATA[Btw, I expanded and released my program in case anyone else has this problem.  Granted, it was unable to solve your problem, but maybe in future revisions it may be able to:  http://ha.ckers.org/blog/20070929/detecting-hashing-algorithms/]]></description>
            <dc:creator>rsnake</dc:creator>
            <category>Projects</category>
            <pubDate>Sat, 29 Sep 2007 14:49:45 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?12,15565,16372#msg-16372</guid>
            <title>Re: An encryption algorithm</title>
            <link>http://sla.ckers.org/forum/read.php?12,15565,16372#msg-16372</link>
            <description><![CDATA[I too have had troubles with finding the hash algorithm used for a password stored in a cookie.<br />
I've been trying to see if they used part of a hash because I couldn't find alot of hash algorithms which produce this particular output length (8byte).<br />
<br />
I was wondering if hashmasher also checks if the &lt;hash&gt; provided is only a part of a known hash algorithm.<br />
<br />
These are examples of the hash:<br />
<br />
aaaa = DE78DA47D9BAAAC6<br />
aaab = 40676C887DEFCEBA<br />
baaa = E3D3B1E3E6BF6464<br />
test = EDD2A1D1B747B0BD<br />
aaaaa = 039C3D6F2B6C8F81<br />
soho123 = 7B90FCED97DF5011<br />
<br />
Maybe instead of just showing &quot;Nope!&quot; you could display the calculated hash for the &lt;password&gt; string.]]></description>
            <dc:creator>DanielG</dc:creator>
            <category>Projects</category>
            <pubDate>Sat, 29 Sep 2007 14:11:29 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?12,15565,16333#msg-16333</guid>
            <title>Re: An encryption algorithm</title>
            <link>http://sla.ckers.org/forum/read.php?12,15565,16333#msg-16333</link>
            <description><![CDATA[You can rule all those out RSnake, <br />
since all hashing algorithm have fixed length. <br />
The first post shows presumely a custom XORing cypher, c.q. transposition because the length varies on entered data. <br />
<br />
To be conculsive he just has to generate multiple strings and try to see the XOR pattern, then it could use a salt/key and then you'll you know where the salt or key returns only if you generate multiple strings and compare where XORing returns. You could solve it in the end since it is highly likely that XORing / transposition is used. <br />
<br />
Like:<br />
<pre class="bbcode">
H . . . O . . . C . . . S
. E . L . S . A . K . R . 
. . L . . . L . . . E . .</pre>
<br />
The only way to know it isn't an encryption algorithm or block cypher like AES, is to watch if every input generates a different result, then you are probably screwed. If it stays the same you will have more luck. What also can be used is to try exotic chars, beyond the [0-9][a-z] since most XORing cyphers don't use them, or are padding them.<br />
<br />
My best bet until now is that it looks like a RC4 cipher since it generates a different cyphertext length each time: <br />
http://en.wikipedia.org/wiki/RC4<br />
<br />
Anyway, goodluck.]]></description>
            <dc:creator>Anonymous User</dc:creator>
            <category>Projects</category>
            <pubDate>Thu, 27 Sep 2007 12:05:36 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?12,15565,16325#msg-16325</guid>
            <title>Re: An encryption algorithm</title>
            <link>http://sla.ckers.org/forum/read.php?12,15565,16325#msg-16325</link>
            <description><![CDATA[id had a good idea, and I ended up building a quick test to see if I could find out for you but alas, it was none of the usual suspects (I haven't built salting into my program):<br />
<br />
$ perl hashmasher.pl <br />
Missing vars!<br />
        Needs to be in the format hashmaster.pl &lt;password&gt; &lt;hash&gt;<br />
<br />
Goodbye.<br />
$ perl hashmasher.pl  55555555555555555 4F35F7F3C94A1AF7CE4A2C94691FDEE8F224<br />
Welcome to the hashmaster!  Written by RSnake (http://ha.ckers.org/)<br />
Trying MD2... Nope!<br />
Trying MD4... Nope!<br />
Trying MD5... Nope!<br />
Trying SHA1... Nope!<br />
Trying SHA224... Nope!<br />
Trying SHA256... Nope!<br />
Trying SHA384... Nope!<br />
Trying SHA512... Nope!<br />
Trying CRC... Nope!<br />
<br />
Done (none found, sorry).<br />
<br />
My test included the following:  md2 md2_hex md2_base64 md4 md4_hex md4_base64 md5 md5_hex md5_base64 sha1 sha1_hex sha1_base64 sha224 sha224_hex sha224_base64 hmac_sha256_hex sha256_hex sha256_base64 sha384 sha384_hex sha384_base64 sha512 sha 512_hex sha512_base64 crc32 crc16 crcccitt crc crc8<br />
<br />
So either it's using a salt (you can probably verify that by typing the same password over and over again and see if it comes out at something different) or it's using something other than one of the usual suspects.]]></description>
            <dc:creator>rsnake</dc:creator>
            <category>Projects</category>
            <pubDate>Thu, 27 Sep 2007 10:44:20 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?12,15565,16298#msg-16298</guid>
            <title>Re: An encryption algorithm</title>
            <link>http://sla.ckers.org/forum/read.php?12,15565,16298#msg-16298</link>
            <description><![CDATA[That is the reason I thought it could be reversed without the actual encrypting function, but I've ran out of ideas.]]></description>
            <dc:creator>ZX</dc:creator>
            <category>Projects</category>
            <pubDate>Wed, 26 Sep 2007 15:15:48 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?12,15565,15874#msg-15874</guid>
            <title>Re: An encryption algorithm</title>
            <link>http://sla.ckers.org/forum/read.php?12,15565,15874#msg-15874</link>
            <description><![CDATA[Right now, the only thing I can see from the codes is that probably there's a linear dipendence from the previous char. This means:<br />
<br />
c_n = f(m_n,n)+m_(n-1) mod(256)<br />
<br />
c_n = n char of the crypted string <br />
m_n = n char of the message string<br />
<br />
that's because 8f-8d = 2 = 3-1 , and we can see that the coding function has not dipendences from the next char cause in 123 and 1235 the first 3 chars are the same.<br />
for a deeper investigation, i think it would be required much time...]]></description>
            <dc:creator>auron</dc:creator>
            <category>Projects</category>
            <pubDate>Thu, 13 Sep 2007 06:49:44 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?12,15565,15585#msg-15585</guid>
            <title>Re: An encryption algorithm</title>
            <link>http://sla.ckers.org/forum/read.php?12,15565,15585#msg-15585</link>
            <description><![CDATA[55555555555555555 = 4F35F7F3C94A1AF7CE4A2C94691FDEE8F224<br />
0123 = 6B9A4899<br />
321 = E18D5C]]></description>
            <dc:creator>ZX</dc:creator>
            <category>Projects</category>
            <pubDate>Wed, 05 Sep 2007 04:01:56 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?12,15565,15583#msg-15583</guid>
            <title>Re: An encryption algorithm</title>
            <link>http://sla.ckers.org/forum/read.php?12,15565,15583#msg-15583</link>
            <description><![CDATA[I suggest using the photoshop colour picker. That should &quot;decrypt&quot; it lol.]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>Projects</category>
            <pubDate>Tue, 04 Sep 2007 20:40:43 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?12,15565,15579#msg-15579</guid>
            <title>Re: An encryption algorithm</title>
            <link>http://sla.ckers.org/forum/read.php?12,15565,15579#msg-15579</link>
            <description><![CDATA[55555555555555555 = ?<br />
0123 = ?<br />
321 = ?]]></description>
            <dc:creator>thornmaker</dc:creator>
            <category>Projects</category>
            <pubDate>Tue, 04 Sep 2007 16:25:41 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?12,15565,15568#msg-15568</guid>
            <title>Re: An encryption algorithm</title>
            <link>http://sla.ckers.org/forum/read.php?12,15565,15568#msg-15568</link>
            <description><![CDATA[Looks like some sort of custom Railfence Cipher =&gt;http://www.math.temple.edu/~renault/cryptology/railfence.html<br />
<br />
Most custom ciphers are based on very simple ones that involve xoring bytes.]]></description>
            <dc:creator>Anonymous User</dc:creator>
            <category>Projects</category>
            <pubDate>Tue, 04 Sep 2007 11:01:51 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?12,15565,15565#msg-15565</guid>
            <title>An encryption algorithm</title>
            <link>http://sla.ckers.org/forum/read.php?12,15565,15565#msg-15565</link>
            <description><![CDATA[Hello there,<br />
Im not sure this is the right section, but feel free to move the topic.<br />
<br />
The thing is, I came across an algorithm and it appears to be a custom. Since I have nothing better to do I've decided to try figure it out, but with no success.<br />
<br />
Here are the strings and the result after the encryption:<br />
123 = 278F98<br />
1235 = 278F98E3<br />
1234567890 = 278F98DBD882B5F084A8<br />
qwerty = 5F065405015A<br />
* result is in hex<br />
<br />
Looking at the first three it seemed, well, easy, but.... you know...<br />
Hope someone could help me.<br />
<br />
Cheers and thank in advance.]]></description>
            <dc:creator>ZX</dc:creator>
            <category>Projects</category>
            <pubDate>Tue, 04 Sep 2007 10:09:11 -0500</pubDate>
        </item>
    </channel>
</rss>
