Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A C program for computing Hamming distances of random strings (for the EngineYard SHA1 contest)
C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Makefile
README
check.c
engine2.c
run.sh
words.txt

README

Building on Linux:

    make linux

Building on OS X:

    make osx

Strategy:

This just tries combinations of 12 words from words.txt, and tests the Hamming distance to see if it's the lowest so far.
It doesn't append the 5 random characters and it doesn't mess with case.

Checking:

    make check

./check "some string" will print out the challenge hash, the hash of arg[1], and the Hamming distance.  You can use this
to double check results.
Something went wrong with that request. Please try again.