# Rainbow tables

**URL:** <https://www.ruby-forum.com/t/rainbow-tables/142279>\
**Category:** Ruby\
**Created:** [July 5, 2008, 9:39pm UTC](https://www.ruby-forum.com/t/rainbow-tables/142279 "2008-07-05T21:39:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![0perator](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/0/90db22/32.png) [@0perator](https://www.ruby-forum.com/u/0perator)\
**Post date:** [July 5, 2008, 9:39pm UTC](https://www.ruby-forum.com/t/rainbow-tables/142279/1 "2008-07-05T21:39:17Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![0perator](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/0/90db22/32.png) [@0perator](https://www.ruby-forum.com/u/0perator)\
**Post date:** [July 6, 2008, 5:09pm UTC](https://www.ruby-forum.com/t/rainbow-tables/142279/2 "2008-07-06T17:09:40Z")

</div>

On Jul 5, 2008, at 3:35 PM, Thomas Roberts wrote:

> end
> 
> but string only goes into lowercase characters
> 
> i.e  
> z \> aa  
> i want it to do  
> z \> A

do ‘a’ to “ZZZZZZZ”

-------------------------------------------------------|  
~ Ari  
Some people want love  
Others want money  
Me… Well…  
I just want this code to compile
