Skip to main content
added 4 characters in body
Source Link
Athari
  • 2.3k
  • 3
  • 18
  • 25

C#

There's a clear dependency between the phrase and the hashes:

using System;
using System.Security.Cryptography;
using System.Text;

class C
{
    static void Main ()
    {
        byte[]b=Encoding.ASCII.GetBytes("Answer to the Ultimate Question of Life, the Universe, and Everything");
        Func<HashAlgorithm,int>q=a=>a.ComputeHash(b)[0];
        int[]i={ q(MD5.Create()), q(SHA1.Create()), q(SHA256.Create()), q(SHA384.Create()), q(SHA512.Create()) };
        Console.WriteLine((i[0]+i[1]+i[2]+i[3]+i[4])/(i[2]-i[1])+1);
    }
}
using System;
using System.Security.Cryptography;
using System.Text;

class C
{
    static void Main ()
    {
        byte[]b=Encoding.ASCII.GetBytes("Answer to the Ultimate Question of Life, the Universe, and Everything");
        Func<HashAlgorithm,int>q=a=>a.ComputeHash(b)[0];
        int[]i={ q(MD5.Create()), q(SHA1.Create()), q(SHA256.Create()), q(SHA384.Create()), q(SHA512.Create()) };
        Console.WriteLine((i[0]+i[1]+i[2]+i[3]+i[4])/(i[2]-i[1])+1);
    }
}

Is it a coincidence or a sign?

C#

There's a clear dependency between the phrase and the hashes:

using System;
using System.Security.Cryptography;
using System.Text;

class C
{
    static void Main ()
    {
        byte[]b=Encoding.ASCII.GetBytes("Answer to the Ultimate Question of Life, the Universe, and Everything");
        Func<HashAlgorithm,int>q=a=>a.ComputeHash(b)[0];
        int[]i={ q(MD5.Create()), q(SHA1.Create()), q(SHA256.Create()), q(SHA384.Create()), q(SHA512.Create()) };
        Console.WriteLine((i[0]+i[1]+i[2]+i[3]+i[4])/(i[2]-i[1])+1);
    }
}

Is it a coincidence or a sign?

C#

There's a clear dependency between the phrase and the hashes:

using System;
using System.Security.Cryptography;
using System.Text;

class C
{
    static void Main ()
    {
        byte[]b=Encoding.ASCII.GetBytes("Answer to the Ultimate Question of Life, the Universe, and Everything");
        Func<HashAlgorithm,int>q=a=>a.ComputeHash(b)[0];
        int[]i={ q(MD5.Create()), q(SHA1.Create()), q(SHA256.Create()), q(SHA384.Create()), q(SHA512.Create()) };
        Console.WriteLine((i[0]+i[1]+i[2]+i[3]+i[4])/(i[2]-i[1])+1);
    }
}

Is it a coincidence or a sign?

Source Link
Athari
  • 2.3k
  • 3
  • 18
  • 25

C#

There's a clear dependency between the phrase and the hashes:

using System;
using System.Security.Cryptography;
using System.Text;

class C
{
    static void Main ()
    {
        byte[]b=Encoding.ASCII.GetBytes("Answer to the Ultimate Question of Life, the Universe, and Everything");
        Func<HashAlgorithm,int>q=a=>a.ComputeHash(b)[0];
        int[]i={ q(MD5.Create()), q(SHA1.Create()), q(SHA256.Create()), q(SHA384.Create()), q(SHA512.Create()) };
        Console.WriteLine((i[0]+i[1]+i[2]+i[3]+i[4])/(i[2]-i[1])+1);
    }
}

Is it a coincidence or a sign?