Brian Candler wrote in post #987608:
> 1000.times do |i|
>   1000.times do |j|
>     if Digest::SHA1.hexdigest("N59 52.%03d E017 42.%03d" % [i,j]) == TARGET
>       raise "Whoo! #{i} #{j}"

You can't do this: there might be another location with the same hash. 
You have to prove (mathematically) that no two locations can have the 
same SHA1 hash.

-- 
Posted via http://www.ruby-forum.com/.