Hello!
I know this post is really old.
But for reference purposes, I found a pure Ruby implementation of MD5 there:
http://d.hatena.ne.jp/zakinco/20091030/p1
Just copy the Purerubymd5 module in your script or a library file.
Purerubymd5.hexdigest("abc")
is then available from Sketchup Ruby.