Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ruby rainbow tables

Status
Not open for further replies.

0perator0402

Programmer
Joined
Jul 5, 2008
Messages
1
Location
GB
hi, here is my script so far to make rainbow tables

require 'digest/md5'
string = "a"
File.open("rainbow.txt", "a") do |f|
while string != "zzzzzzzz"
md5 = Digest::MD5.hexdigest(string)
f.puts string + " : " + md5
string = string.next
end
end

but string only goes into lowercase characters

i.e
z > aa
i want it to do
z > A

thanks...
 
Yes, that's what it does.
rdoc said:
Incrementing a digit always results in another digit, and incrementing a letter results in another letter of the same case.

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::PerlDesignPatterns)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top